Class ManualWorkflowScheduler
java.lang.Object
io.axoniq.framework.workflow.runtime.test.utils.ManualWorkflowScheduler
- All Implemented Interfaces:
WorkflowScheduler
Manual timeout scheduler driven by the fixture clock.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrunDueTasks(Instant now) Run all tasks due up to the given instant.Schedules a deadline notification when fixture time reaches the given deadline.
-
Constructor Details
-
ManualWorkflowScheduler
public ManualWorkflowScheduler()
-
-
Method Details
-
schedule
Schedules a deadline notification when fixture time reaches the given deadline.- Specified by:
schedulein interfaceWorkflowScheduler- Parameters:
deadline- deadline according to fixture-controlled time- Returns:
- scheduled task handle
-
runDueTasks
Run all tasks due up to the given instant.- Parameters:
now- current fixture time
-