Class InMemoryJob

java.lang.Object
org.apache.activemq.broker.scheduler.memory.InMemoryJob
All Implemented Interfaces:
Job

public class InMemoryJob extends Object implements Job
A simple in memory Job POJO.
  • Constructor Details

    • InMemoryJob

      public InMemoryJob(String jobId)
  • Method Details

    • getJobId

      public String getJobId()
      Specified by:
      getJobId in interface Job
      Returns:
      the jobId
    • getRepeat

      public int getRepeat()
      Specified by:
      getRepeat in interface Job
      Returns:
      the repeat
    • setRepeat

      public void setRepeat(int repeat)
    • getStart

      public long getStart()
      Specified by:
      getStart in interface Job
      Returns:
      the start
    • setStart

      public void setStart(long start)
    • getNextTime

      public long getNextTime()
    • setNextTime

      public void setNextTime(long nextTime)
    • getDelay

      public long getDelay()
      Specified by:
      getDelay in interface Job
      Returns:
      the Delay
    • setDelay

      public void setDelay(long delay)
    • getPeriod

      public long getPeriod()
      Specified by:
      getPeriod in interface Job
      Returns:
      the period
    • setPeriod

      public void setPeriod(long period)
    • getCronEntry

      public String getCronEntry()
      Specified by:
      getCronEntry in interface Job
      Returns:
      the cron entry
    • setCronEntry

      public void setCronEntry(String cronEntry)
    • getPayload

      public byte[] getPayload()
      Specified by:
      getPayload in interface Job
      Returns:
      the payload
    • setPayload

      public void setPayload(byte[] payload)
    • getStartTime

      public String getStartTime()
      Description copied from interface: Job
      Get the start time as a Date time string
      Specified by:
      getStartTime in interface Job
      Returns:
      the date time
    • getNextExecutionTime

      public String getNextExecutionTime()
      Description copied from interface: Job
      Get the time the job is next due to execute
      Specified by:
      getNextExecutionTime in interface Job
      Returns:
      the date time
    • getExecutionCount

      public int getExecutionCount()
      Description copied from interface: Job
      Gets the total number of times this job has executed.
      Specified by:
      getExecutionCount in interface Job
    • incrementExecutionCount

      public void incrementExecutionCount()
    • decrementRepeatCount

      public void decrementRepeatCount()
    • isCron

      public boolean isCron()
      Returns:
      true if this Job represents a Cron entry.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object