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