Class ActorTask

java.lang.Object
io.camunda.zeebe.scheduler.ActorTask

public class ActorTask extends Object
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.
  • Field Details

  • Constructor Details

    • ActorTask

      public ActorTask(Actor actor)
  • Method Details

    • onTaskScheduled

      public ActorFuture<Void> onTaskScheduled(ActorThreadGroup actorThreadGroup)
      called when the task is initially scheduled.
    • submit

      public void submit(ActorJob job)
      Used to externally submit a job.
    • execute

      public boolean execute(ActorThread runner)
    • requestClose

      public void requestClose()
    • onFailure

      public void onFailure(Throwable failure)
    • claim

      public boolean claim(long stateCount)
    • tryWakeup

      public boolean tryWakeup()
    • getState

      public ActorTask.TaskSchedulingState getState()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • yieldThread

      public void yieldThread()
    • getStateCount

      public long getStateCount()
    • getName

      public String getName()
    • getActor

      public Actor getActor()
    • isClosing

      public boolean isClosing()
    • getLifecyclePhase

      public ActorTask.ActorLifecyclePhase getLifecyclePhase()
    • getStartingFuture

      public CompletableActorFuture<Void> getStartingFuture()
    • addSubscription

      public void addSubscription(ActorSubscription subscription)
    • onSubscriptionCancelled

      public void onSubscriptionCancelled(ActorSubscription subscription)
    • resubmit

      public void resubmit()
    • insertJob

      public void insertJob(ActorJob job)
    • fail

      public void fail(Throwable error)
    • estimateQueueLength

      public int estimateQueueLength()