Class DueDateChecker
java.lang.Object
io.camunda.zeebe.engine.processing.scheduled.DueDateChecker
- All Implemented Interfaces:
StreamProcessorLifecycleAware
-
Constructor Summary
ConstructorsConstructorDescriptionDueDateChecker(long timerResolution, Function<LegacyTypedCommandWriter, Long> nextDueDateFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidonPaused()Callback which is called when the processing is paused, will only called after onRecovered was called before.voidonRecovered(ReadonlyStreamProcessorContext processingContext) Callback after reprocessing was successful and before regular processing beginsvoidCallback which is called when the processing is resumed, will only called after onPaused was called before.voidschedule(long dueDate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.engine.api.StreamProcessorLifecycleAware
onClose, onFailed
-
Constructor Details
-
DueDateChecker
public DueDateChecker(long timerResolution, Function<LegacyTypedCommandWriter, Long> nextDueDateFunction)
-
-
Method Details
-
schedule
public void schedule(long dueDate) -
onRecovered
Description copied from interface:StreamProcessorLifecycleAwareCallback after reprocessing was successful and before regular processing begins- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-
onPaused
public void onPaused()Description copied from interface:StreamProcessorLifecycleAwareCallback which is called when the processing is paused, will only called after onRecovered was called before.- Specified by:
onPausedin interfaceStreamProcessorLifecycleAware
-
onResumed
public void onResumed()Description copied from interface:StreamProcessorLifecycleAwareCallback which is called when the processing is resumed, will only called after onPaused was called before.- Specified by:
onResumedin interfaceStreamProcessorLifecycleAware
-