接口 TriggerContext

所有已知实现类:
SimpleTriggerContext

public interface TriggerContext
Context object encapsulating last execution times and last completion time of a given task.
从以下版本开始:
4.0
作者:
Juergen Hoeller, Harry Yang
  • 方法详细资料

    • getClock

      default Clock getClock()
      Return the clock to use for trigger calculation.
      另请参阅:
    • lastScheduledExecutionTime

      @Nullable @Deprecated default Date lastScheduledExecutionTime()
      已过时。
      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.
    • lastActualExecutionTime

      @Deprecated @Nullable default Date lastActualExecutionTime()
      已过时。
      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()
      已过时。
      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.