public final class Repetition
extends PersistableValue
null meaning no limit for
cycle), and an interval of time to wait between each job run (can be
null meaning no wait).Period,
OdiSchedule| Constructor and Description |
|---|
Repetition(int pMaxNumberOfRepetition,
Period pMaxCycleDuration,
Period pRepetitionInterval)
Constructs Repetition with specified
maximum number of
repetition, time interval between runs,
maximum cycle duration. |
| Modifier and Type | Method and Description |
|---|---|
Period |
getMaxCycleDuration()
Returns the maximum cycle duration.
|
int |
getMaxNumberOfRepetition()
Returns the maximum number of repetition.
|
Period |
getRepetitionInterval()
Returns time interval between runs.
|
public Repetition(int pMaxNumberOfRepetition,
Period pMaxCycleDuration,
Period pRepetitionInterval)
maximum number of
repetition, time interval between runs,
maximum cycle duration.pMaxNumberOfRepetition - maximum number of repetitionpMaxCycleDuration - maximum cycle durationpRepetitionInterval - time between runsDomainRuntimeException - if specified number of repetition is
negative integerpublic int getMaxNumberOfRepetition()
public Period getMaxCycleDuration()
public Period getRepetitionInterval()