Package io.camunda.zeebe.scheduler
Class ActorConditionImpl
java.lang.Object
io.camunda.zeebe.scheduler.ActorConditionImpl
- All Implemented Interfaces:
ActorCondition,ActorSubscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()getJob()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-createdvoidcallback received as the job returned byActorSubscription.getJob()completes execution.booleanpoll()called by theActorThreadto determine whether the subscription has work available.voidsignal()notify that the condition is met (true)toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.ActorSubscription
triggersInPhase
-
Constructor Details
-
ActorConditionImpl
-
-
Method Details
-
signal
public void signal()Description copied from interface:ActorConditionnotify that the condition is met (true)- Specified by:
signalin interfaceActorCondition
-
cancel
public void cancel()- Specified by:
cancelin interfaceActorCondition- Specified by:
cancelin 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
-
onJobCompleted
public void onJobCompleted()Description copied from interface:ActorSubscriptioncallback received as the job returned byActorSubscription.getJob()completes execution.- Specified by:
onJobCompletedin interfaceActorSubscription
-
toString
-