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 Type
    Method
    Description
    default Clock
    Return the clock to use for trigger calculation.
    Return the last actual execution time of the task, or null if not scheduled before.
    Return the last completion time of the task, or null if not scheduled before.
    Return the last scheduled execution time of the task, or null if not scheduled before.
  • Method Details

    • getClock

      default Clock getClock()
      Return the clock to use for trigger calculation.
      Since:
      5.3
      See Also:
    • lastScheduledExecutionTime

      @Nullable Date lastScheduledExecutionTime()
      Return the last scheduled execution time of the task, or null if not scheduled before.
    • lastActualExecutionTime

      @Nullable Date lastActualExecutionTime()
      Return the last actual execution time of the task, or null if not scheduled before.
    • lastCompletionTime

      @Nullable Date lastCompletionTime()
      Return the last completion time of the task, or null if not scheduled before.