Package org.springframework.scheduling
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
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Date
lastActualExecutionTime()
Return the last actual execution time of the task, ornull
if not scheduled before.Date
lastCompletionTime()
Return the last completion time of the task, ornull
if not scheduled before.Date
lastScheduledExecutionTime()
Return the last scheduled execution time of the task, ornull
if not scheduled before.
Method Detail
lastScheduledExecutionTime
@Nullable Date lastScheduledExecutionTime()
Return the last scheduled execution time of the task, ornull
if not scheduled before.
lastActualExecutionTime
@Nullable Date lastActualExecutionTime()
Return the last actual execution time of the task, ornull
if not scheduled before.
lastCompletionTime
@Nullable Date lastCompletionTime()
Return the last completion time of the task, ornull
if not scheduled before.