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 Instant
getInitialExecutionTime(Instant now)
Used to get the first execution-time for a schedule.Instant
getNextExecutionTime(ExecutionComplete executionComplete)
boolean
isDeterministic()
boolean
isDisabled()
-
-
-
Method Detail
-
getNextExecutionTime
public Instant getNextExecutionTime(ExecutionComplete executionComplete)
- Specified by:
getNextExecutionTime
in interfaceSchedule
-
isDeterministic
public boolean isDeterministic()
- Specified by:
isDeterministic
in interfaceSchedule
-
getInitialExecutionTime
public Instant getInitialExecutionTime(Instant now)
Description copied from interface:Schedule
Used to get the first execution-time for a schedule. Simulates an ExecutionComplete event.- Specified by:
getInitialExecutionTime
in interfaceSchedule
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceSchedule
-
-