RepeatingSchedulableJob¶
-
public class
RepeatingSchedulableJob
extends MisfireSchedulableJob¶ Schedulable Job - a data carrier class for a scheduled job that can be fired set number of times
Constructors¶
RepeatingSchedulableJob¶
-
public
RepeatingSchedulableJob
()¶ Constructor. It will create a job, which will never end, won’t ignore past fires at start and will use original fire time after misfire. Start time,
MotechEvent
, repeat count and repeat interval are not assigned, which means that further usage, without setting them, can cause exceptions.
RepeatingSchedulableJob¶
-
public
RepeatingSchedulableJob
(MotechEvent motechEvent, Integer repeatCount, Integer repeatIntervalInSeconds, DateTime startTime, DateTime endTime, boolean ignorePastFiresAtStart)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
which will be fired when the job triggers, not null - repeatCount – the number of times job should be repeated, null treated as infinite
- repeatIntervalInSeconds – the interval(in seconds) between job fires
- startTime – the
DateTime
at which job should become ACTIVE, not null - endTime – the
DateTime
at which job should be stopped, null treated as never end - ignorePastFiresAtStart – the flag defining whether job should ignore past fires at start or not
- motechEvent – the
RepeatingSchedulableJob¶
-
public
RepeatingSchedulableJob
(MotechEvent motechEvent, Integer repeatIntervalInSeconds, DateTime startTime, DateTime endTime, boolean ignorePastFiresAtStart)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
which will be fired when the job triggers, not null - repeatIntervalInSeconds – the interval(in seconds) between job fires
- startTime – the
DateTime
at which job should become ACTIVE, not null - endTime – the
DateTime
at which job should be stopped, null treated as never end - ignorePastFiresAtStart – the flag defining whether job should ignore past fires at start or not
- motechEvent – the
RepeatingSchedulableJob¶
-
public
RepeatingSchedulableJob
(MotechEvent motechEvent, Integer repeatCount, Integer repeatIntervalInSeconds, DateTime startTime, DateTime endTime, boolean ignorePastFiresAtStart, boolean useOriginalFireTimeAfterMisfire, boolean uiDefined)¶ Constructor.
Parameters: - motechEvent – the
MotechEvent
which will be fired when the job triggers, not null - repeatCount – the number of times job should be repeated, null treated as infinite
- repeatIntervalInSeconds – the interval(in seconds) between job fires
- startTime – the
DateTime
at which job should become ACTIVE, not null - endTime – the
DateTime
at which job should be stopped, null treated as never end - ignorePastFiresAtStart – the flag defining whether job should ignore past fires at start or not
- motechEvent – the
Methods¶
setRepeatCount¶
-
public RepeatingSchedulableJob
setRepeatCount
(Integer repeatCount)¶
setRepeatIntervalInSeconds¶
-
public RepeatingSchedulableJob
setRepeatIntervalInSeconds
(Integer repeatIntervalInSeconds)¶