Package io.temporal.internal.worker
Class StickyQueueBalancer
- java.lang.Object
-
- io.temporal.internal.worker.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()
-
-
-
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 finishedbacklogSize
- backlog size from the poll response, helps to determine if the sticky queue is backlogged
-
-