org.oddjob.schedules.schedules
Class AfterSchedule

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

public final class AfterSchedule
extends AbstractSchedule
implements 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:
 <schedules:after xmlns:schedules="http://rgordon.co.uk/oddjob/schedules" >
  <refinement>
   <schedules:interval interval="00:20"/>
  </refinement>
 </schedules: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
getRefinement, setRefinement
 
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.