|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.schedules.AbstractSchedule
org.oddjob.schedules.schedules.CountSchedule
The count will be reset if the end interval changes, i.e. when counting n days of the month, and the month moves on. However in the retry situation to reset the count schedule it would need to be reset.
If the nested schedule isn't specified it defaults to
NowSchedule
<count count="5"> <interval interval="00:15"/> </count>
| Constructor Summary | |
CountSchedule()
|
|
| Method Summary | |
java.lang.String |
getCount()
Get the number to count to. |
Interval |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
void |
setCount(java.lang.String count)
Set the number to count to. |
java.lang.String |
toString()
Override toString to be more meaningful. |
| 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, wait, wait, wait |
| Constructor Detail |
public CountSchedule()
| Method Detail |
public void setCount(java.lang.String count)
count - The number to count to.public java.lang.String getCount()
public Interval nextDue(ScheduleContext context)
ScheduleIf the schedule is never due again for the given date, null is returned.
nextDue in interface Schedulepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||