Package io.camunda.zeebe.scheduler
Interface ActorSubscription
- All Known Subinterfaces:
TimerSubscription
- All Known Implementing Classes:
ActorConditionImpl,ActorFutureSubscription,DelayedTimerSubscription,StampedTimerSubscription
public interface ActorSubscription
Subscription to some external source of work / jobs.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcancel()getJob()called by theActorThreadafterpoll()returned true to get the job to be runbooleanReturns true in case the subscription is recurring (ie. after the job finished, the subscription is re-createddefault voidcallback received as the job returned bygetJob()completes execution.booleanpoll()called by theActorThreadto determine whether the subscription has work available.default booleanreturns true if the subscription should be able to trigger in the provided phase
-
Method Details
-
triggersInPhase
returns true if the subscription should be able to trigger in the provided phase -
poll
boolean poll()called by theActorThreadto determine whether the subscription has work available. -
getJob
ActorJob getJob()called by theActorThreadafterpoll()returned true to get the job to be run -
isRecurring
boolean isRecurring()Returns true in case the subscription is recurring (ie. after the job finished, the subscription is re-created -
onJobCompleted
default void onJobCompleted()callback received as the job returned bygetJob()completes execution. -
cancel
default void cancel()
-