org.oddjob.schedules
Interface Schedule

All Known Subinterfaces:
RefineableSchedule
All Known Implementing Classes:
AbstractSchedule, AfterSchedule, BrokenSchedule, ConstrainedSchedule, CountSchedule, DailySchedule, DateSchedule, DayAfterSchedule, DayBeforeSchedule, IntervalSchedule, LastSchedule, MonthlySchedule, NowSchedule, OccurrenceSchedule, ParentChildSchedule, ScheduleList, TimeSchedule, WeeklySchedule, YearlySchedule

public interface Schedule

The interface that defines a schedule.

Author:
Rob Gordon

Method Summary
 ScheduleResult nextDue(ScheduleContext context)
          For a given date a schedule will provide the interval this schedule should next be scheduled in.
 

Method Detail

nextDue

ScheduleResult nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in.

If the schedule is never due again for the given date, null is returned.

Parameters:
now - The date now.
Returns:
The next due interval for the schedule.