Class DefaultWorkflowScheduler
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.DefaultWorkflowScheduler
- All Implemented Interfaces:
WorkflowScheduler
Wall-clock timeout scheduler used in production.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.axoniq.framework.workflow.runtime.execution.WorkflowScheduler
WorkflowScheduler.ScheduledTask -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowScheduler(Clock clock, ScheduledThreadPoolExecutor timerExecutor) Creates a scheduler backed by the provided timer executor. -
Method Summary
Modifier and TypeMethodDescriptionSchedules a deadline notification.voidshutdown()Stops deadline delivery and cancels pending timer tasks.
-
Constructor Details
-
DefaultWorkflowScheduler
Creates a scheduler backed by the provided timer executor.- Parameters:
clock- workflow clocktimerExecutor- executor used only for deadline delivery
-
-
Method Details
-
schedule
Description copied from interface:WorkflowSchedulerSchedules a deadline notification.- Specified by:
schedulein interfaceWorkflowScheduler- Parameters:
deadline- deadline according to the configured workflow clock- Returns:
- handle of the scheduled task
-
shutdown
public void shutdown()Stops deadline delivery and cancels pending timer tasks.
-