Package io.camunda.zeebe.stream.impl
Class ProcessingScheduleServiceImpl
java.lang.Object
io.camunda.zeebe.stream.impl.ProcessingScheduleServiceImpl
- All Implemented Interfaces:
SimpleProcessingScheduleService,AutoCloseable
public class ProcessingScheduleServiceImpl
extends Object
implements SimpleProcessingScheduleService, AutoCloseable
Here the implementation is just a suggestion to amke the engine abstraction work. Can be whatever
PDT team thinks is best to work with
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.stream.api.scheduling.SimpleProcessingScheduleService
SimpleProcessingScheduleService.ScheduledTask -
Constructor Summary
ConstructorsConstructorDescriptionProcessingScheduleServiceImpl(Supplier<StreamProcessor.Phase> streamProcessorPhaseSupplier, BooleanSupplier abortCondition, Supplier<LogStreamWriter> writerSupplier, ScheduledCommandCache.StageableScheduledCommandCache commandCache, InstantSource clock, Duration interval, ScheduledTaskMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()open(ActorControl control) Schedules the task to run at or after the given timestamp.Schedules the task to run at or after the given timestamp.voidrunAtFixedRate(Duration delay, Task task) runDelayed(Duration delay, Task task) Schedules the task to run after the given delay.runDelayed(Duration delay, Runnable task) Schedules the task to run after the given delay.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.stream.api.scheduling.SimpleProcessingScheduleService
runAtFixedRate
-
Constructor Details
-
ProcessingScheduleServiceImpl
public ProcessingScheduleServiceImpl(Supplier<StreamProcessor.Phase> streamProcessorPhaseSupplier, BooleanSupplier abortCondition, Supplier<LogStreamWriter> writerSupplier, ScheduledCommandCache.StageableScheduledCommandCache commandCache, InstantSource clock, Duration interval, ScheduledTaskMetrics metrics)
-
-
Method Details
-
runDelayed
Description copied from interface:SimpleProcessingScheduleServiceSchedules the task to run after the given delay.- Specified by:
runDelayedin interfaceSimpleProcessingScheduleService- Returns:
- A representation of the scheduled task.
-
runDelayed
Description copied from interface:SimpleProcessingScheduleServiceSchedules the task to run after the given delay.- Specified by:
runDelayedin interfaceSimpleProcessingScheduleService- Returns:
- A representation of the scheduled task.
-
runAt
Description copied from interface:SimpleProcessingScheduleServiceSchedules the task to run at or after the given timestamp.- Specified by:
runAtin interfaceSimpleProcessingScheduleService- Returns:
- A representation of the scheduled task.
-
runAt
Description copied from interface:SimpleProcessingScheduleServiceSchedules the task to run at or after the given timestamp.- Specified by:
runAtin interfaceSimpleProcessingScheduleService- Returns:
- A representation of the scheduled task.
-
runAtFixedRate
- Specified by:
runAtFixedRatein interfaceSimpleProcessingScheduleService
-
open
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-