Interface IntervalExecutionSchedule
- All Superinterfaces:
ExecutionSchedule
A periodic schedule, the length is specified in
getInterval().
Please notice that the real time between two executions may differ from the specified interval
e.g. because the runtime of the tasks and the setting of the parallel execution mode conflicts with the next execution time.
- Since:
- 4.0
-
Field Summary
Fields inherited from interface de.espirit.firstspirit.access.schedule.ExecutionSchedule
DAILY, FIXED, INTERVAL, MONTHLY -
Method Summary
Modifier and TypeMethodDescriptionlongThe interval dependentScheduleEntryshould be executed (inmilliseconds).voidsetInterval(long value) Provide the interval the dependentScheduleEntryshould be executed (inmilliseconds).voidsetInterval(@NotNull Duration interval) Provide the interval the dependentScheduleEntryshould be executed.Methods inherited from interface de.espirit.firstspirit.access.schedule.ExecutionSchedule
getNextExecutionTime, getType, setNextExecutionTime
-
Method Details
-
getInterval
long getInterval()The interval dependentScheduleEntryshould be executed (inmilliseconds).- Since:
- 4.0
- See Also:
-
setInterval
void setInterval(long value) Provide the interval the dependentScheduleEntryshould be executed (inmilliseconds).- Parameters:
value- the interval dependentScheduleEntryshould be executed (inmilliseconds).- Throws:
IllegalArgumentException- If the specified interval is 0 or less.- Since:
- 4.0
- See Also:
-
setInterval
Provide the interval the dependentScheduleEntryshould be executed.- Parameters:
interval- the interval dependentScheduleEntryshould be executed.- Since:
- 5.2.250501
- See Also:
-