Class StickyQueueBalancer


  • @ThreadSafe
    public class StickyQueueBalancer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StickyQueueBalancer​(int pollersCount, boolean stickyQueueEnabled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finishPoll​(io.temporal.api.enums.v1.TaskQueueKind taskQueueKind)  
      void finishPoll​(io.temporal.api.enums.v1.TaskQueueKind taskQueueKind, long backlogSize)  
      io.temporal.api.enums.v1.TaskQueueKind makePoll()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StickyQueueBalancer

        public StickyQueueBalancer​(int pollersCount,
                                   boolean stickyQueueEnabled)
    • Method Detail

      • makePoll

        public io.temporal.api.enums.v1.TaskQueueKind makePoll()
        Returns:
        task queue kind that should be used for the next poll
      • finishPoll

        public void finishPoll​(io.temporal.api.enums.v1.TaskQueueKind taskQueueKind)
        Parameters:
        taskQueueKind - what kind of task queue poll was just finished
      • finishPoll

        public void finishPoll​(io.temporal.api.enums.v1.TaskQueueKind taskQueueKind,
                               long backlogSize)
        Parameters:
        taskQueueKind - what kind of task queue poll was just finished
        backlogSize - backlog size from the poll response, helps to determine if the sticky queue is backlogged