Package io.camunda.zeebe.scheduler
Class ActorTask
java.lang.Object
io.camunda.zeebe.scheduler.ActorTask
A task executed by the scheduler. For each actor (instance), exactly one task is created. Each
invocation of one of the actor's methods is an
ActorJob.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn actor task's lifecycle phasesstatic enumDescribes an actor's scheduling state -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubscription(ActorSubscription subscription) booleanclaim(long stateCount) intbooleanexecute(ActorThread runner) voidgetActor()getName()getState()longvoidbooleanvoidvoidonSubscriptionCancelled(ActorSubscription subscription) onTaskScheduled(ActorThreadGroup actorThreadGroup) called when the task is initially scheduled.voidvoidresubmit()voidUsed to externally submit a job.toString()booleanvoid
-
Field Details
-
closeFuture
-
-
Constructor Details
-
ActorTask
-
-
Method Details
-
onTaskScheduled
called when the task is initially scheduled. -
submit
Used to externally submit a job. -
execute
-
requestClose
public void requestClose() -
onFailure
-
claim
public boolean claim(long stateCount) -
tryWakeup
public boolean tryWakeup() -
getState
-
toString
-
yieldThread
public void yieldThread() -
getStateCount
public long getStateCount() -
getName
-
getActor
-
isClosing
public boolean isClosing() -
getLifecyclePhase
-
getStartingFuture
-
addSubscription
-
onSubscriptionCancelled
-
resubmit
public void resubmit() -
insertJob
-
fail
-
estimateQueueLength
public int estimateQueueLength()
-