Package io.camunda.zeebe.scheduler
Interface TimerSubscription
- All Superinterfaces:
ActorSubscription,Runnable,ScheduledTimer
- All Known Implementing Classes:
DelayedTimerSubscription,StampedTimerSubscription
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()longgetDeadline(ActorClock now) getJob()called by theActorThreadafterActorSubscription.poll()returned true to get the job to be runlonglongbooleanReturns 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.voidonTimerExpired(TimeUnit timeUnit, long now) booleanpoll()called by theActorThreadto determine whether the subscription has work available.voidrun()voidsetTimerId(long timerId) voidsubmit()Methods inherited from interface io.camunda.zeebe.scheduler.ActorSubscription
triggersInPhase
-
Method Details
-
poll
boolean poll()Description copied from interface:ActorSubscriptioncalled by theActorThreadto determine whether the subscription has work available.- Specified by:
pollin interfaceActorSubscription
-
getJob
ActorJob getJob()Description copied from interface:ActorSubscriptioncalled by theActorThreadafterActorSubscription.poll()returned true to get the job to be run- Specified by:
getJobin interfaceActorSubscription
-
isRecurring
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
void onJobCompleted()Description copied from interface:ActorSubscriptioncallback received as the job returned byActorSubscription.getJob()completes execution.- Specified by:
onJobCompletedin interfaceActorSubscription
-
cancel
void cancel()- Specified by:
cancelin interfaceActorSubscription- Specified by:
cancelin interfaceScheduledTimer
-
getTimerId
long getTimerId() -
setTimerId
void setTimerId(long timerId) -
submit
void submit() -
getDeadline
-
onTimerExpired
-
run
void run() -
getTimerExpiredAt
long getTimerExpiredAt()
-