类 SimpleTriggerContext
java.lang.Object
cn.taketoday.scheduling.support.SimpleTriggerContext
- 所有已实现的接口:
TriggerContext
Simple data holder implementation of the
TriggerContext interface.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
-
构造器概要
构造器构造器说明Create a SimpleTriggerContext with all time values set tonull, exposing the system clock for the default time zone.SimpleTriggerContext(Clock clock) Create a SimpleTriggerContext with all time values set tonull, exposing the given clock.SimpleTriggerContext(Instant lastScheduledExecution, Instant lastActualExecution, Instant lastCompletion) Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone.SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime) Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone. -
方法概要
修饰符和类型方法说明getClock()Return the clock to use for trigger calculation.Return the last actual execution time of the task, ornullif not scheduled before.Return the last completion time of the task, ornullif not scheduled before.Return the last scheduled execution time of the task, ornullif not scheduled before.voidUpdate this holder's state with the latest time values.voidUpdate this holder's state with the latest time values.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.scheduling.TriggerContext
lastActualExecutionTime, lastCompletionTime, lastScheduledExecutionTime
-
构造器详细资料
-
SimpleTriggerContext
public SimpleTriggerContext()Create a SimpleTriggerContext with all time values set tonull, exposing the system clock for the default time zone. -
SimpleTriggerContext
public SimpleTriggerContext(@Nullable Date lastScheduledExecutionTime, @Nullable Date lastActualExecutionTime, @Nullable Date lastCompletionTime) Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone.- 参数:
lastScheduledExecutionTime- last scheduled execution timelastActualExecutionTime- last actual execution timelastCompletionTime- last completion time
-
SimpleTriggerContext
public SimpleTriggerContext(@Nullable Instant lastScheduledExecution, @Nullable Instant lastActualExecution, @Nullable Instant lastCompletion) Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone.- 参数:
lastScheduledExecution- last scheduled execution timelastActualExecution- last actual execution timelastCompletion- last completion time
-
SimpleTriggerContext
Create a SimpleTriggerContext with all time values set tonull, exposing the given clock.- 参数:
clock- the clock to use for trigger calculation- 另请参阅:
-
-
方法详细资料
-
update
public void update(@Nullable Date lastScheduledExecutionTime, @Nullable Date lastActualExecutionTime, @Nullable Date lastCompletionTime) Update this holder's state with the latest time values.- 参数:
lastScheduledExecutionTime- last scheduled execution timelastActualExecutionTime- last actual execution timelastCompletionTime- last completion time
-
update
public void update(@Nullable Instant lastScheduledExecution, @Nullable Instant lastActualExecution, @Nullable Instant lastCompletion) Update this holder's state with the latest time values.- 参数:
lastScheduledExecution- last scheduled execution timelastActualExecution- last actual execution timelastCompletion- last completion time
-
getClock
从接口复制的说明:TriggerContextReturn the clock to use for trigger calculation.- 指定者:
getClock在接口中TriggerContext- 另请参阅:
-
lastScheduledExecution
从接口复制的说明:TriggerContextReturn the last scheduled execution time of the task, ornullif not scheduled before.- 指定者:
lastScheduledExecution在接口中TriggerContext
-
lastActualExecution
从接口复制的说明:TriggerContextReturn the last actual execution time of the task, ornullif not scheduled before.- 指定者:
lastActualExecution在接口中TriggerContext
-
lastCompletion
从接口复制的说明:TriggerContextReturn the last completion time of the task, ornullif not scheduled before.- 指定者:
lastCompletion在接口中TriggerContext
-