org.oddjob.schedules.schedules
Class NowSchedule
java.lang.Object
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.
NowSchedule
public NowSchedule()
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