org.oddjob.schedules.schedules
Class NowSchedule

java.lang.Object
  extended by org.oddjob.schedules.schedules.NowSchedule
All Implemented Interfaces:
Schedule

public class NowSchedule
extends Object
implements Schedule

Description

Schedule something now.

Example

Examples elsewhere. The ScheduleType examples show's now being used to get the current date.
Author:
Rob Gordon.

Constructor Summary
NowSchedule()
           
 
Method Summary
 ScheduleResult nextDue(ScheduleContext context)
          For a given date a schedule will provide the interval this schedule should next be scheduled in.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NowSchedule

public NowSchedule()
Method Detail

nextDue

public ScheduleResult 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.

toString

public String toString()
Overrides:
toString in class Object