|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.schedules.schedules.IntervalSchedule
public class IntervalSchedule
This schedule is commonly used as a refinement of another schedule
such as the DailySchedule, TimeSchedule or CountSchedule
schedules.
<schedules:interval interval="00:20" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"/>
| Constructor Summary | |
|---|---|
IntervalSchedule()
Default bean constructor. |
|
IntervalSchedule(long millis)
Constructor with milliseconds. |
|
| Method Summary | |
|---|---|
ScheduleResult |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
void |
setInterval(String interval)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntervalSchedule()
public IntervalSchedule(long millis)
millis - | Method Detail |
|---|
public void setInterval(String interval)
throws ParseException
Property: interval
Description: The interval time. The interval must be specified in one of the formats:
Required: No but defaults to no interval.
interval - The interval.
ParseException - If the interval is not a valid date.public ScheduleResult nextDue(ScheduleContext context)
ScheduleIf the schedule is never due again for the given date, null is returned.
nextDue in interface Schedulepublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||