public class SimpleTriggerContext extends ObjectSE implements TriggerContext
TriggerContext
インターフェースのシンプルなデータホルダー実装。コンストラクターと説明 |
---|
SimpleTriggerContext() すべての時間値を null に設定して SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。 |
SimpleTriggerContext(ClockSE clock) すべての時間値を null に設定して SimpleTriggerContext を作成し、指定されたクロックを公開します。 |
SimpleTriggerContext(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime) 指定された時間値で SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。 |
修飾子と型 | メソッドと説明 |
---|---|
ClockSE | getClock() トリガー計算に使用するクロックを返します。 |
DateSE | lastActualExecutionTime() タスクの最後の実際の実行時間、または以前にスケジュールされていない場合は null を返します。 |
DateSE | lastCompletionTime() タスクの最後の補完時刻を返します。以前にスケジュールされていない場合は、 null を返します。 |
DateSE | lastScheduledExecutionTime() タスクの最後にスケジュールされた実行時間を返します。スケジュールされていない場合は null を返します。 |
void | update(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime) このホルダーの状態を最新の時刻値で更新します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public SimpleTriggerContext()
null
に設定して SimpleTriggerContext を作成し、デフォルトのタイムゾーンのシステムクロックを公開します。public SimpleTriggerContext(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime)
lastScheduledExecutionTime
- 最後にスケジュールされた実行時間 lastActualExecutionTime
- 最後の実際の実行時間 lastCompletionTime
- 最終完了時刻 public SimpleTriggerContext(ClockSE clock)
null
に設定して SimpleTriggerContext を作成し、指定されたクロックを公開します。clock
- トリガー計算に使用するクロック update(Date, Date, Date)
public void update(DateSE lastScheduledExecutionTime, DateSE lastActualExecutionTime, DateSE lastCompletionTime)
lastScheduledExecutionTime
- 最後にスケジュールされた実行時間 lastActualExecutionTime
- 最後の実際の実行時間 lastCompletionTime
- 最終完了時刻 public ClockSE getClock()
TriggerContext
TriggerContext
の getClock
TaskScheduler.getClock()
, Clock.systemDefaultZone()
SE@Nullable public DateSE lastScheduledExecutionTime()
TriggerContext
null
を返します。TriggerContext
の lastScheduledExecutionTime
@Nullable public DateSE lastActualExecutionTime()
TriggerContext
null
を返します。TriggerContext
の lastActualExecutionTime
@Nullable public DateSE lastCompletionTime()
TriggerContext
null
を返します。TriggerContext
の lastCompletionTime