Class DisabledSchedule
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.task.schedule.DisabledSchedule
-
-
Constructor Summary
Constructors Constructor Description DisabledSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetInitialExecutionTime(Instant now)Used to get the first execution-time for a schedule.InstantgetNextExecutionTime(ExecutionComplete executionComplete)booleanisDeterministic()booleanisDisabled()
-
-
-
Method Detail
-
getNextExecutionTime
public Instant getNextExecutionTime(ExecutionComplete executionComplete)
- Specified by:
getNextExecutionTimein interfaceSchedule
-
isDeterministic
public boolean isDeterministic()
- Specified by:
isDeterministicin interfaceSchedule
-
getInitialExecutionTime
public Instant getInitialExecutionTime(Instant now)
Description copied from interface:ScheduleUsed to get the first execution-time for a schedule. Simulates an ExecutionComplete event.- Specified by:
getInitialExecutionTimein interfaceSchedule
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceSchedule
-
-