类 SimpleTriggerContext
- java.lang.Object
- org.springframework.scheduling.support.SimpleTriggerContext
- 所有已实现的接口:
TriggerContext
public class SimpleTriggerContext extends Object implements TriggerContext
Simple data holder implementation of theTriggerContextinterface.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 SimpleTriggerContext()Create a SimpleTriggerContext with all time values set tonull.SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)Create a SimpleTriggerContext with the given time values.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DatelastActualExecutionTime()Return the last actual execution time of the task, ornullif not scheduled before.DatelastCompletionTime()Return the last completion time of the task, ornullif not scheduled before.DatelastScheduledExecutionTime()Return the last scheduled execution time of the task, ornullif not scheduled before.voidupdate(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)Update this holder's state with the latest time values.
构造器详细资料
SimpleTriggerContext
public SimpleTriggerContext()
Create a SimpleTriggerContext with all time values set tonull.
SimpleTriggerContext
public SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
Create a SimpleTriggerContext with the given time values.- 参数:
lastScheduledExecutionTime- last scheduled execution timelastActualExecutionTime- last actual execution timelastCompletionTime- last completion time
方法详细资料
update
public void update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
Update this holder's state with the latest time values.- 参数:
lastScheduledExecutionTime- last scheduled execution timelastActualExecutionTime- last actual execution timelastCompletionTime- last completion time
lastScheduledExecutionTime
public Date lastScheduledExecutionTime()
从接口复制的说明:TriggerContextReturn the last scheduled execution time of the task, ornullif not scheduled before.- 指定者:
lastScheduledExecutionTime在接口中TriggerContext
lastActualExecutionTime
public Date lastActualExecutionTime()
从接口复制的说明:TriggerContextReturn the last actual execution time of the task, ornullif not scheduled before.- 指定者:
lastActualExecutionTime在接口中TriggerContext
lastCompletionTime
public Date lastCompletionTime()
从接口复制的说明:TriggerContextReturn the last completion time of the task, ornullif not scheduled before.- 指定者:
lastCompletionTime在接口中TriggerContext