Package io.camunda.zeebe.scheduler
Class ActorFutureSubscription
java.lang.Object
io.camunda.zeebe.scheduler.ActorFutureSubscription
- All Implemented Interfaces:
ActorSubscription
-
Constructor Summary
ConstructorsConstructorDescriptionActorFutureSubscription(ActorFuture<?> future, ActorJob callbackJob, int phaseMask) -
Method Summary
Modifier and TypeMethodDescriptiongetJob()called by theActorThreadafterActorSubscription.poll()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-createdbooleanpoll()called by theActorThreadto determine whether the subscription has work available.booleanreturns true if the subscription should be able to trigger in the provided phaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.ActorSubscription
cancel, onJobCompleted
-
Constructor Details
-
ActorFutureSubscription
-
-
Method Details
-
triggersInPhase
Description copied from interface:ActorSubscriptionreturns true if the subscription should be able to trigger in the provided phase- Specified by:
triggersInPhasein interfaceActorSubscription
-
poll
public boolean poll()Description copied from interface:ActorSubscriptioncalled by theActorThreadto determine whether the subscription has work available.- Specified by:
pollin interfaceActorSubscription
-
getJob
Description copied from interface:ActorSubscriptioncalled by theActorThreadafterActorSubscription.poll()returned true to get the job to be run- Specified by:
getJobin interfaceActorSubscription
-
isRecurring
public boolean isRecurring()Description copied from interface:ActorSubscriptionReturns true in case the subscription is recurring (ie. after the job finished, the subscription is re-created- Specified by:
isRecurringin interfaceActorSubscription
-