Class InMemoryJob
- java.lang.Object
-
- org.apache.activemq.broker.scheduler.memory.InMemoryJob
-
-
Constructor Summary
Constructors Constructor Description InMemoryJob(String jobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrementRepeatCount()StringgetCronEntry()longgetDelay()intgetExecutionCount()Gets the total number of times this job has executed.StringgetJobId()StringgetNextExecutionTime()Get the time the job is next due to executelonggetNextTime()byte[]getPayload()longgetPeriod()intgetRepeat()longgetStart()StringgetStartTime()Get the start time as a Date time stringinthashCode()voidincrementExecutionCount()booleanisCron()voidsetCronEntry(String cronEntry)voidsetDelay(long delay)voidsetNextTime(long nextTime)voidsetPayload(byte[] payload)voidsetPeriod(long period)voidsetRepeat(int repeat)voidsetStart(long start)StringtoString()
-
-
-
Constructor Detail
-
InMemoryJob
public InMemoryJob(String jobId)
-
-
Method Detail
-
setRepeat
public void setRepeat(int repeat)
-
setStart
public void setStart(long start)
-
getNextTime
public long getNextTime()
-
setNextTime
public void setNextTime(long nextTime)
-
setDelay
public void setDelay(long delay)
-
setPeriod
public void setPeriod(long period)
-
getCronEntry
public String getCronEntry()
- Specified by:
getCronEntryin interfaceJob- Returns:
- the cron entry
-
setCronEntry
public void setCronEntry(String cronEntry)
-
getPayload
public byte[] getPayload()
- Specified by:
getPayloadin interfaceJob- Returns:
- the payload
-
setPayload
public void setPayload(byte[] payload)
-
getStartTime
public String getStartTime()
Description copied from interface:JobGet the start time as a Date time string- Specified by:
getStartTimein interfaceJob- Returns:
- the date time
-
getNextExecutionTime
public String getNextExecutionTime()
Description copied from interface:JobGet the time the job is next due to execute- Specified by:
getNextExecutionTimein interfaceJob- Returns:
- the date time
-
getExecutionCount
public int getExecutionCount()
Description copied from interface:JobGets the total number of times this job has executed.- Specified by:
getExecutionCountin interfaceJob
-
incrementExecutionCount
public void incrementExecutionCount()
-
decrementRepeatCount
public void decrementRepeatCount()
-
isCron
public boolean isCron()
- Returns:
- true if this Job represents a Cron entry.
-
-