public class SimpleTriggerContext extends Object implements TriggerContext
TriggerContext
interface.Constructor and Description |
---|
SimpleTriggerContext()
Create a SimpleTriggerContext with all time values set to
null . |
SimpleTriggerContext(Date lastScheduledExecutionTime,
Date lastActualExecutionTime,
Date lastCompletionTime)
Create a SimpleTriggerContext with the given time values.
|
Modifier and Type | Method and Description |
---|---|
Date |
lastActualExecutionTime()
Return the last actual execution time of the task,
or
null if not scheduled before. |
Date |
lastCompletionTime()
Return the last completion time of the task,
or
null if not scheduled before. |
Date |
lastScheduledExecutionTime()
Return the last scheduled execution time of the task,
or
null if not scheduled before. |
void |
update(Date lastScheduledExecutionTime,
Date lastActualExecutionTime,
Date lastCompletionTime)
Update this holder's state with the latest time values.
|
public SimpleTriggerContext()
null
.public SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
lastScheduledExecutionTime
- last scheduled execution timelastActualExecutionTime
- last actual execution timelastCompletionTime
- last completion timepublic void update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
lastScheduledExecutionTime
- last scheduled execution timelastActualExecutionTime
- last actual execution timelastCompletionTime
- last completion timepublic Date lastScheduledExecutionTime()
TriggerContext
null
if not scheduled before.lastScheduledExecutionTime
in interface TriggerContext
public Date lastActualExecutionTime()
TriggerContext
null
if not scheduled before.lastActualExecutionTime
in interface TriggerContext
public Date lastCompletionTime()
TriggerContext
null
if not scheduled before.lastCompletionTime
in interface TriggerContext