RunOnceSchedulableJob

public final class RunOnceSchedulableJob implements SchedulableJob, Serializable

Run Once Schedulable Job - a data carrier class for a job scheduled in the future that can be fired only once

This class is immutable

User: Igor (iopushnyev@2paths.com) Date: 16/02/11 Time: 1:43 PM

Constructors

RunOnceSchedulableJob

public RunOnceSchedulableJob(MotechEvent motechEvent, Date startDate)

Constructor

Parameters:
  • motechEvent
    • event data message that will be send by Motech Scheduler when this job is fired
  • startDate
    • date and time when the job fill be fired
Throws:
  • IllegalArgumentException – if motechEvent or startDate is null or startDate is in past

Methods

equals

public boolean equals(Object o)

getMotechEvent

public MotechEvent getMotechEvent()

getStartDate

public Date getStartDate()

hashCode

public int hashCode()

isIgnorePastFiresAtStart

public boolean isIgnorePastFiresAtStart()

toString

public String toString()