org.oddjob.schedules
Interface ScheduleResult

All Superinterfaces:
Interval
All Known Implementing Classes:
IntervalTo, SimpleScheduleResult

public interface ScheduleResult
extends Interval

The result of calculating the Schedule.nextDue(ScheduleContext) for a schedule.

Author:
rob

Field Summary
 
Fields inherited from interface org.oddjob.schedules.Interval
END_OF_TIME, START_OF_TIME
 
Method Summary
 Date getUseNext()
          For recurring schedules this property provide the date that should be used for the next call to Schedule.nextDue(ScheduleContext) by using the ScheduleContext.move(Date) method.
 
Methods inherited from interface org.oddjob.schedules.Interval
getFromDate, getToDate
 

Method Detail

getUseNext

Date getUseNext()
For recurring schedules this property provide the date that should be used for the next call to Schedule.nextDue(ScheduleContext) by using the ScheduleContext.move(Date) method. For most schedules this date will be identical to the Interval.getToDate() but for some schedules such AfterSchedule this will not be the case.

Returns:
A date. May be null to indicate there is no other next due for this schedule..