Interface Job

All Known Implementing Classes:
InMemoryJob

public interface Job
Interface for a scheduled Job object. Each Job is identified by a unique Job Id which can be used to reference the Job in the Job Scheduler store for updates or removal.
  • Method Details

    • getJobId

      String getJobId()
      Returns:
      the jobId
    • getRepeat

      int getRepeat()
      Returns:
      the repeat
    • getStart

      long getStart()
      Returns:
      the start
    • getDelay

      long getDelay()
      Returns:
      the Delay
    • getPeriod

      long getPeriod()
      Returns:
      the period
    • getCronEntry

      String getCronEntry()
      Returns:
      the cron entry
    • getPayload

      byte[] getPayload()
      Returns:
      the payload
    • getStartTime

      String getStartTime()
      Get the start time as a Date time string
      Returns:
      the date time
    • getNextExecutionTime

      String getNextExecutionTime()
      Get the time the job is next due to execute
      Returns:
      the date time
    • getExecutionCount

      int getExecutionCount()
      Gets the total number of times this job has executed.
    • getDestinationName

      String getDestinationName()
      Returns:
      name of destination
    • setDestinationName

      void setDestinationName(String destinationName)