public interface ScheduleListener
Modifier and Type | Method and Description |
---|---|
void |
complete(java.util.Date scheduleDate,
ScheduleResult lastComplete)
Called when the job has completed successfully.
|
void |
failed(java.util.Date scheduleDate)
Retries (if they exist) are exhausted.
|
void |
initialised(java.util.Date scheduleDate)
Called when a ScheduleCalculator is first initialised.
|
void |
retry(java.util.Date scheduleDate,
java.util.Date retryDate)
The job has failed an the retry schedule is in
operation.
|
void initialised(java.util.Date scheduleDate)
scheduleDate
- The date the schedule is first due.void complete(java.util.Date scheduleDate, ScheduleResult lastComplete)
scheduleDate
- The new schedule date.lastComplete
- The interval of the last schedule.void retry(java.util.Date scheduleDate, java.util.Date retryDate)
scheduleDate
- The date when the job was due to be scheduled.
This shouldn't have changed. Not sure why we need it here.retryDate
- When a retry is due according to the
retry schedule.void failed(java.util.Date scheduleDate)
scheduleDate
- When the job is next due according to
the schedule or null if it's not.