Interface Schedule
-
- All Known Implementing Classes:
CronSchedule
,Daily
,DisabledSchedule
,FixedDelay
public interface Schedule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Instant
getInitialExecutionTime(Instant now)
Used to get the first execution-time for a schedule.Instant
getNextExecutionTime(ExecutionComplete executionComplete)
boolean
isDeterministic()
default boolean
isDisabled()
-
-
-
Method Detail
-
getNextExecutionTime
Instant getNextExecutionTime(ExecutionComplete executionComplete)
-
getInitialExecutionTime
default Instant getInitialExecutionTime(Instant now)
Used to get the first execution-time for a schedule. Simulates an ExecutionComplete event.
-
isDeterministic
boolean isDeterministic()
-
isDisabled
default boolean isDisabled()
-
-