インターフェース TriggerContext

すべての既知の実装クラス:
SimpleTriggerContext

public interface TriggerContext
特定のタスクの最終実行時間と最終完了時間をカプセル化するコンテキストオブジェクト。
導入:
3.0
作成者:
Juergen Hoeller, Arjen Poutsma
  • メソッドの詳細

    • getClock

      default ClockSE getClock()
      トリガー計算に使用するクロックを返します。

      デフォルトは Clock.systemDefaultZone() です。

      導入:
      5.3
      関連事項:
    • lastScheduledExecutionTime

      @Nullable @DeprecatedSE(since="6.0") default DateSE lastScheduledExecutionTime()
      使用すべきではありません。
      6.0 の時点で、lastScheduledExecution() を推奨
      タスクの最後にスケジュールされた実行時間を返します。スケジュールされていない場合は null を返します。

      デフォルトの実装は lastScheduledExecution() に委譲します。

    • lastScheduledExecution

      @Nullable InstantSE lastScheduledExecution()
      タスクの最後にスケジュールされた実行時間を返します。スケジュールされていない場合は null を返します。
      導入:
      6.0
    • lastActualExecutionTime

      @Nullable @DeprecatedSE(since="6.0") default DateSE lastActualExecutionTime()
      使用すべきではありません。
      6.0 の時点で、lastActualExecution() を推奨
      タスクの最後の実際の実行時間、または以前にスケジュールされていない場合は null を返します。

      デフォルトの実装は lastActualExecution() に委譲します。

    • lastActualExecution

      @Nullable InstantSE lastActualExecution()
      タスクの最後の実際の実行時間、または以前にスケジュールされていない場合は null を返します。
      導入:
      6.0
    • lastCompletionTime

      @DeprecatedSE(since="6.0") @Nullable default DateSE lastCompletionTime()
      使用すべきではありません。
      6.0 の時点で、lastCompletion() を推奨
      タスクの最後の補完時刻を返します。以前にスケジュールされていない場合は、null を返します。

      デフォルトの実装は lastCompletion() に委譲します。

    • lastCompletion

      @Nullable InstantSE lastCompletion()
      タスクの最後の補完時刻を返します。以前にスケジュールされていない場合は、null を返します。
      導入:
      6.0