public final class OccurrenceSchedule extends AbstractSchedule implements java.io.Serializable
<schedules:monthly xmlns:schedules="http://rgordon.co.uk/oddjob/schedules">
<refinement>
<bean class="org.oddjob.schedules.schedules.OccurrenceSchedule" occurrence="2">
<refinement>
<schedules:weekly on="2"/>
</refinement>
</bean>
</refinement>
</schedules:monthly>
| Constructor and Description |
|---|
OccurrenceSchedule() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOccurrence()
Return the number of the occurrence for this schedule.
|
ScheduleResult |
nextDue(ScheduleContext context)
Return the next due interval which is the given occurrence of
it's child schedules.
|
void |
setOccurrence(java.lang.String occurrence)
Set the number of the occurrence for this schedule.
|
java.lang.String |
toString()
Override toString.
|
getRefinement, setRefinementpublic void setOccurrence(java.lang.String occurrence)
occurrence - The occurence.public java.lang.String getOccurrence()
public ScheduleResult nextDue(ScheduleContext context)
public java.lang.String toString()
toString in class java.lang.Object