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 Details

    • getClock

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

      @Nullable @Deprecated default Date lastScheduledExecutionTime()
      Deprecated.
      as of 6.0, in favor on lastScheduledExecution()
      Return the last scheduled execution time of the task, or null if not scheduled before.
    • lastScheduledExecution

      @Nullable Instant lastScheduledExecution()
      Return the last scheduled execution time of the task, or null if not scheduled before.
      Since:
      6.0
    • lastActualExecutionTime

      @Deprecated @Nullable default Date lastActualExecutionTime()
      Deprecated.
      as of 6.0, in favor on lastActualExecution()
      Return the last actual execution time of the task, or null if not scheduled before.
    • lastActualExecution

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

      @Deprecated @Nullable default Date lastCompletionTime()
      Deprecated.
      as of 6.0, in favor on lastCompletion()
      Return the last completion time of the task, or null if not scheduled before.
    • lastCompletion

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