org.oddjob.schedules.schedules
Class AfterSchedule

java.lang.Object
  extended byorg.oddjob.schedules.AbstractSchedule
      extended byorg.oddjob.schedules.schedules.AfterSchedule
All Implemented Interfaces:
RefineableSchedule, Schedule, java.io.Serializable

public final class AfterSchedule
extends AbstractSchedule
implements java.io.Serializable

Description:
Schedule at a point in time immediately after the nested schedule.

This can be useful when wanting a schedule to begin at the end of an interval instead of the beginning.

Example:
 <after>
   <interval interval="00:20"/>
 </after>
 
See Also:
Serialized Form
Author:
Rob Gordon

Constructor Summary
AfterSchedule()
           
 
Method Summary
 Interval nextDue(ScheduleContext context)
          For a given date a schedule will provide the interval this schedule should next be scheduled in.
 
Methods inherited from class org.oddjob.schedules.AbstractSchedule
addValueSchedule, getChildSchedule, getLimits, setChildSchedule, setLimits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterSchedule

public AfterSchedule()
Method Detail

nextDue

public Interval nextDue(ScheduleContext context)
Description copied from interface: Schedule
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.

Specified by:
nextDue in interface Schedule
Returns:
The next due interval for the schedule.