Interface ExecutionSchedule
- All Known Subinterfaces:
DailyExecutionSchedule,FixedExecutionSchedule,IntervalExecutionSchedule,MonthlyExecutionSchedule
public interface ExecutionSchedule
Definition of a execution scheduling entry.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType indicator for daily scheduled execution.static final intType indicator for fixed scheduled execution.static final intType indicator for interval scheduled execution.static final intType indicator for monthly scheduled execution. -
Method Summary
Modifier and TypeMethodDescription@Nullable DateReturns the next execution time ornullfor expired tasks.intgetType()One ofDAILY(forDailyExecutionSchedule),FIXED(forFixedExecutionSchedule),INTERVAL(forIntervalExecutionSchedule), orMONTHLY(forMonthlyExecutionSchedule).voidsetNextExecutionTime(Date value) Provide theDatetheScheduleEntryshould be executed next time.
-
Field Details
-
DAILY
static final int DAILYType indicator for daily scheduled execution.- Since:
- 4.0
- See Also:
-
FIXED
static final int FIXEDType indicator for fixed scheduled execution.- Since:
- 4.0
- See Also:
-
INTERVAL
static final int INTERVALType indicator for interval scheduled execution.- Since:
- 4.0
- See Also:
-
MONTHLY
static final int MONTHLYType indicator for monthly scheduled execution.- Since:
- 4.0
- See Also:
-
-
Method Details
-
getNextExecutionTime
Returns the next execution time ornullfor expired tasks.Please notice that the real execution time may differ from this value e.g. beacause the runtime of the tasks and the setting of the
parallel execution modeconflicts with the returned time.- Since:
- 4.0
- See Also:
-
setNextExecutionTime
Provide theDatetheScheduleEntryshould be executed next time.- Parameters:
value- theDatetheScheduleEntryshould be executed next time.- Since:
- 4.0
- See Also:
-
getType
int getType()One ofDAILY(forDailyExecutionSchedule),FIXED(forFixedExecutionSchedule),INTERVAL(forIntervalExecutionSchedule), orMONTHLY(forMonthlyExecutionSchedule).- Since:
- 4.0
-