Interface Job
-
- All Known Implementing Classes:
InMemoryJob
,JobImpl
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCronEntry()
long
getDelay()
int
getExecutionCount()
Gets the total number of times this job has executed.String
getJobId()
String
getNextExecutionTime()
Get the time the job is next due to executebyte[]
getPayload()
long
getPeriod()
int
getRepeat()
long
getStart()
String
getStartTime()
Get the start time as a Date time string
-
-
-
Method Detail
-
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.
-
-