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 InstantgetInitialExecutionTime(Instant now)Used to get the first execution-time for a schedule.InstantgetNextExecutionTime(ExecutionComplete executionComplete)booleanisDeterministic()default booleanisDisabled()
-
-
-
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()
-
-