|
||||||||
| 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
public final class CountSchedule
If there is more than one count in a schedule a key must be provided to differentiate their internally store numbers, otherwise the count value would be shared.
If the nested schedule isn't specified it defaults to
NowSchedule
<schedules:count count="5" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules">
<refinement>
<schedules:interval interval="00:15"/>
</refinement>
</schedules:count>
<schedules:daily xmlns:schedules="http://rgordon.co.uk/oddjob/schedules">
<refinement>
<schedules:time from="11:00">
<refinement>
<schedules:count count="3">
<refinement>
<schedules:interval interval="00:05"/>
</refinement>
</schedules:count>
</refinement>
</schedules:time>
</refinement>
</schedules:daily>
<schedules:count identifier="outer" count="6" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules">
<refinement>
<schedules:daily from="11:00">
<refinement>
<schedules:count count="2">
<refinement>
<schedules:interval interval="00:01"/>
</refinement>
</schedules:count>
</refinement>
</schedules:daily>
</refinement>
</schedules:count>
| Constructor Summary | |
|---|---|
CountSchedule()
Bean constructor. |
|
CountSchedule(int countTo)
Constructor with count. |
|
| Method Summary | |
|---|---|
int |
getCount()
Get the number to count to. |
String |
getIdentifier()
Getter for key. |
ScheduleResult |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
void |
setCount(int count)
Set the number to count to. |
void |
setIdentifier(String key)
Setter for key. |
String |
toString()
Override toString to be more meaningful. |
| Methods inherited from class org.oddjob.schedules.AbstractSchedule |
|---|
getRefinement, setRefinement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CountSchedule()
public CountSchedule(int countTo)
countTo - | Method Detail |
|---|
public void setCount(int count)
count - The number to count to.public int getCount()
public String getIdentifier()
public void setIdentifier(String key)
key - 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 | |||||||