Interface TriggerContext
- All Known Implementing Classes:
- SimpleTriggerContext
public interface TriggerContext
Context object encapsulating last execution times and last completion time
of a given task.
- Since:
- 3.0
- Author:
- Juergen Hoeller, Arjen Poutsma
- 
Method SummaryModifier and TypeMethodDescriptiondefault ClockgetClock()Return the clock to use for trigger calculation.Return the last actual execution time of the task, ornullif not scheduled before.Deprecated.Return the last completion time of the task, ornullif not scheduled before.Deprecated.as of 6.0, in favor onlastCompletion()Return the last scheduled execution time of the task, ornullif not scheduled before.Deprecated.as of 6.0, in favor onlastScheduledExecution()
- 
Method Details- 
getClockReturn the clock to use for trigger calculation.Defaults to Clock.systemDefaultZone().- Since:
- 5.3
- See Also:
 
- 
lastScheduledExecutionTimeDeprecated.as of 6.0, in favor onlastScheduledExecution()Return the last scheduled execution time of the task, ornullif not scheduled before.The default implementation delegates to lastScheduledExecution().
- 
lastScheduledExecution
- 
lastActualExecutionTimeDeprecated.as of 6.0, in favor onlastActualExecution()Return the last actual execution time of the task, ornullif not scheduled before.The default implementation delegates to lastActualExecution().
- 
lastActualExecution
- 
lastCompletionTimeDeprecated.as of 6.0, in favor onlastCompletion()Return the last completion time of the task, ornullif not scheduled before.The default implementation delegates to lastCompletion().
- 
lastCompletion
 
- 
lastActualExecution()