Interface ExecutionSchedule
- All Known Subinterfaces:
DailyExecutionSchedule
,FixedExecutionSchedule
,IntervalExecutionSchedule
,MonthlyExecutionSchedule
public interface ExecutionSchedule
Definition of a execution scheduling entry.
- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Type indicator for daily scheduled execution.static final int
Type indicator for fixed scheduled execution.static final int
Type indicator for interval scheduled execution.static final int
Type indicator for monthly scheduled execution. -
Method Summary
Modifier and TypeMethodDescription@Nullable Date
Returns the next execution time ornull
for expired tasks.int
getType()
One ofDAILY
(forDailyExecutionSchedule
),FIXED
(forFixedExecutionSchedule
),INTERVAL
(forIntervalExecutionSchedule
), orMONTHLY
(forMonthlyExecutionSchedule
).void
setNextExecutionTime
(Date value) Provide theDate
theScheduleEntry
should 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 ornull
for 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 mode
conflicts with the returned time.- Since:
- 4.0
- See Also:
-
setNextExecutionTime
Provide theDate
theScheduleEntry
should be executed next time.- Parameters:
value
- theDate
theScheduleEntry
should be executed next time.- Since:
- 4.0
- See Also:
-
getType
int getType()One ofDAILY
(forDailyExecutionSchedule
),FIXED
(forFixedExecutionSchedule
),INTERVAL
(forIntervalExecutionSchedule
), orMONTHLY
(forMonthlyExecutionSchedule
).- Since:
- 4.0
-