de.espirit.firstspirit.access.schedule
Interface ExecutionSchedule

All Known Subinterfaces:
DailyExecutionSchedule, FixedExecutionSchedule, IntervalExecutionSchedule, MonthlyExecutionSchedule

public interface ExecutionSchedule

Since:
4.0

Field Summary
static int DAILY
          Type indicator for daily scheduled execution.
static int FIXED
          Type indicator for fixed scheduled execution.
static int INTERVAL
          Type indicator for interval scheduled execution.
static int MONTHLY
          Type indicator for monthly scheduled execution.
 
Method Summary
 Date getNextExecutionTime()
          Returns the next execution time or null for expired tasks.
 int getType()
          One of ExecutionSchedule.DAILY (for DailyExecutionSchedule), ExecutionSchedule.FIXED (for FixedExecutionSchedule), ExecutionSchedule.INTERVAL (for IntervalExecutionSchedule), or ExecutionSchedule.MONTHLY (for MonthlyExecutionSchedule).
 void setNextExecutionTime(Date value)
          Provide the Date the ScheduleEntry should be executed next time.
 

Field Detail

DAILY

static final int DAILY
Type indicator for daily scheduled execution.

Since:
4.0
See Also:
ExecutionSchedule.getType(), Constant Field Values

FIXED

static final int FIXED
Type indicator for fixed scheduled execution.

Since:
4.0
See Also:
ExecutionSchedule.getType(), Constant Field Values

INTERVAL

static final int INTERVAL
Type indicator for interval scheduled execution.

Since:
4.0
See Also:
ExecutionSchedule.getType(), Constant Field Values

MONTHLY

static final int MONTHLY
Type indicator for monthly scheduled execution.

Since:
4.0
See Also:
ExecutionSchedule.getType(), Constant Field Values
Method Detail

getNextExecutionTime

@Nullable
Date getNextExecutionTime()
Returns the next execution time or null 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:
ExecutionSchedule.setNextExecutionTime(java.util.Date)

setNextExecutionTime

void setNextExecutionTime(Date value)
Provide the Date the ScheduleEntry should be executed next time.

Parameters:
value - the Date the ScheduleEntry should be executed next time.
Since:
4.0
See Also:
ExecutionSchedule.getNextExecutionTime()

getType

int getType()
One of ExecutionSchedule.DAILY (for DailyExecutionSchedule), ExecutionSchedule.FIXED (for FixedExecutionSchedule), ExecutionSchedule.INTERVAL (for IntervalExecutionSchedule), or ExecutionSchedule.MONTHLY (for MonthlyExecutionSchedule).

Since:
4.0


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480