クラス SimpleTriggerContext
java.lang.ObjectSE
org.springframework.scheduling.support.SimpleTriggerContext
- 実装されているすべてのインターフェース:
TriggerContext
TriggerContext インターフェースのシンプルなデータホルダー実装。- 導入:
- 3.0
- 作成者:
- Juergen Hoeller
コンストラクターの概要
コンストラクターコンストラクター説明すべての時間値をnullに設定して SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。SimpleTriggerContext(ClockSE clock) すべての時間値をnullに設定して SimpleTriggerContext を作成し、指定されたクロックを公開します。SimpleTriggerContext(InstantSE lastScheduledExecution, InstantSE lastActualExecution, InstantSE lastCompletion) 指定された時間値で SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。SimpleTriggerContext(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime) 使用すべきではありません。メソッドのサマリー
修飾子と型メソッド説明getClock()トリガー計算に使用するクロックを返します。タスクの最後の実際の実行時間、または以前にスケジュールされていない場合はnullを返します。タスクの最後の完了時刻を返します。以前にスケジュールされていない場合は、nullを返します。タスクの最後にスケジュールされた実行時間を返します。スケジュールされていない場合はnullを返します。voidこのホルダーの状態を最新の時刻値で更新します。voidupdate(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime) 使用すべきではありません。6.0 現在、update(Instant, Instant, Instant)を推奨クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.scheduling.TriggerContext から継承されたメソッド
lastActualExecutionTime, lastCompletionTime, lastScheduledExecutionTime
コンストラクターの詳細
SimpleTriggerContext
public SimpleTriggerContext()すべての時間値をnullに設定して SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。SimpleTriggerContext
@DeprecatedSE(since="6.0") public SimpleTriggerContext(@Nullable DateSE lastScheduledExecutionTime, @Nullable DateSE lastActualExecutionTime, @Nullable DateSE lastCompletionTime) 使用すべきではありません。指定された時間値で SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。- パラメーター:
lastScheduledExecutionTime- 最後にスケジュールされた実行時間lastActualExecutionTime- 最後の実際の実行時間lastCompletionTime- 最終完了時刻
SimpleTriggerContext
public SimpleTriggerContext(@Nullable InstantSE lastScheduledExecution, @Nullable InstantSE lastActualExecution, @Nullable InstantSE lastCompletion) 指定された時間値で SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。- パラメーター:
lastScheduledExecution- 最後にスケジュールされた実行時間lastActualExecution- 最後の実際の実行時間lastCompletion- 最終完了時刻
SimpleTriggerContext
すべての時間値をnullに設定して SimpleTriggerContext を作成し、指定されたクロックを公開します。- パラメーター:
clock- トリガー計算に使用するクロック- 導入:
- 5.3
- 関連事項:
メソッドの詳細
update
@DeprecatedSE(since="6.0") public void update(@Nullable DateSE lastScheduledExecutionTime, @Nullable DateSE lastActualExecutionTime, @Nullable DateSE lastCompletionTime) 使用すべきではありません。6.0 現在、update(Instant, Instant, Instant)を推奨このホルダーの状態を最新の時刻値で更新します。- パラメーター:
lastScheduledExecutionTime- 最後にスケジュールされた実行時間lastActualExecutionTime- 最後の実際の実行時間lastCompletionTime- 最終完了時刻
update
public void update(@Nullable InstantSE lastScheduledExecution, @Nullable InstantSE lastActualExecution, @Nullable InstantSE lastCompletion) このホルダーの状態を最新の時刻値で更新します。- パラメーター:
lastScheduledExecution- 最後にスケジュールされた実行時間lastActualExecution- 最後の実際の実行時間lastCompletion- 最終完了時刻
getClock
インターフェースからコピーされた説明:TriggerContextトリガー計算に使用するクロックを返します。デフォルトは
Clock.systemDefaultZone()です。- 次で指定:
- インターフェース
TriggerContextのgetClock - 関連事項:
lastScheduledExecution
インターフェースからコピーされた説明:TriggerContextタスクの最後にスケジュールされた実行時間を返します。スケジュールされていない場合はnullを返します。- 次で指定:
- インターフェース
TriggerContextのlastScheduledExecution
lastActualExecution
インターフェースからコピーされた説明:TriggerContextタスクの最後の実際の実行時間、または以前にスケジュールされていない場合はnullを返します。- 次で指定:
- インターフェース
TriggerContextのlastActualExecution
lastCompletion
インターフェースからコピーされた説明:TriggerContextタスクの最後の完了時刻を返します。以前にスケジュールされていない場合は、nullを返します。- 次で指定:
- インターフェース
TriggerContextのlastCompletion
SimpleTriggerContext(Instant, Instant, Instant)を推奨