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
Modifier and TypeMethodDescriptiondefault Clock
getClock()
Return the clock to use for trigger calculation.Return the last actual execution time of the task, ornull
if not scheduled before.default Date
Deprecated.Return the last completion time of the task, ornull
if not scheduled before.default Date
Deprecated.as of 6.0, in favor onlastCompletion()
Return the last scheduled execution time of the task, ornull
if not scheduled before.default Date
Deprecated.as of 6.0, in favor onlastScheduledExecution()
-
Method Details
-
getClock
Return the clock to use for trigger calculation.- Since:
- 5.3
- See Also:
-
lastScheduledExecutionTime
Deprecated.as of 6.0, in favor onlastScheduledExecution()
Return the last scheduled execution time of the task, ornull
if not scheduled before. -
lastScheduledExecution
Return the last scheduled execution time of the task, ornull
if not scheduled before.- Since:
- 6.0
-
lastActualExecutionTime
Deprecated.as of 6.0, in favor onlastActualExecution()
Return the last actual execution time of the task, ornull
if not scheduled before. -
lastActualExecution
Return the last actual execution time of the task, ornull
if not scheduled before. -
lastCompletionTime
Deprecated.as of 6.0, in favor onlastCompletion()
Return the last completion time of the task, ornull
if not scheduled before. -
lastCompletion
Return the last completion time of the task, ornull
if not scheduled before.
-
lastActualExecution()