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.Return the last completion time of the task, ornull
if not scheduled before.Return the last scheduled execution time of the task, ornull
if not scheduled before.
-
Method Details
-
getClock
Return the clock to use for trigger calculation.- Since:
- 5.3
- See Also:
-
lastScheduledExecutionTime
Return the last scheduled execution time of the task, ornull
if not scheduled before. -
lastActualExecutionTime
Return the last actual execution time of the task, ornull
if not scheduled before. -
lastCompletionTime
Return the last completion time of the task, ornull
if not scheduled before.
-