RepeatingSchedulableJob

public class RepeatingSchedulableJob implements Serializable

Schedulable Job - a data carrier class for a scheduled job that can be fired set number of times

Constructors

RepeatingSchedulableJob

public RepeatingSchedulableJob()

RepeatingSchedulableJob

public RepeatingSchedulableJob(MotechEvent motechEvent, Date startTime, Date endTime, Integer repeatCount, Long repeatIntervalInMilliSeconds, boolean ignorePastFiresAtStart)

RepeatingSchedulableJob

public RepeatingSchedulableJob(MotechEvent motechEvent, Date startTime, Date endTime, Long repeatIntervalInMilliSeconds, boolean ignorePastFiresAtStart)

Methods

equals

public boolean equals(Object obj)

getEndTime

public Date getEndTime()

getMotechEvent

public MotechEvent getMotechEvent()

getRepeatCount

public Integer getRepeatCount()

getRepeatIntervalInMilliSeconds

public Long getRepeatIntervalInMilliSeconds()

getStartTime

public Date getStartTime()

hashCode

public int hashCode()

isIgnorePastFiresAtStart

public boolean isIgnorePastFiresAtStart()

isUseOriginalFireTimeAfterMisfire

public boolean isUseOriginalFireTimeAfterMisfire()

setEndTime

public RepeatingSchedulableJob setEndTime(Date endTime)

setIgnorePastFiresAtStart

public RepeatingSchedulableJob setIgnorePastFiresAtStart(boolean ignorePastFiresAtStart)

Ignore past fires when start time of job is in past.

ex : repeating job with interval of 5 unit, and current time in between fire 2 and 3 will start triggering from 3rd firetime.
 1     2     3     4
 |-----|-----|-----|
 start    ^current time
Parameters:
  • ignorePastFiresAtStart

setMotechEvent

public RepeatingSchedulableJob setMotechEvent(MotechEvent motechEvent)

setRepeatCount

public RepeatingSchedulableJob setRepeatCount(Integer repeatCount)

setRepeatIntervalInMilliSeconds

public RepeatingSchedulableJob setRepeatIntervalInMilliSeconds(Long repeatIntervalInMilliSeconds)

setStartTime

public RepeatingSchedulableJob setStartTime(Date startTime)

setUseOriginalFireTimeAfterMisfire

public RepeatingSchedulableJob setUseOriginalFireTimeAfterMisfire(boolean useOriginalFireTimeAfterMisfire)

toString

public String toString()