类 SimpleTriggerContext
- java.lang.Object
- org.springframework.scheduling.support.SimpleTriggerContext
- 所有已实现的接口:
TriggerContext
public class SimpleTriggerContext extends Object implements TriggerContext
Simple data holder implementation of theTriggerContext
interface.- 从以下版本开始:
- 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Date
lastActualExecutionTime()
Return the last actual execution time of the task, ornull
if not scheduled before.Date
lastCompletionTime()
Return the last completion time of the task, ornull
if not scheduled before.Date
lastScheduledExecutionTime()
Return the last scheduled execution time of the task, ornull
if not scheduled before.void
update(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
@Nullable public Date lastScheduledExecutionTime()
从接口复制的说明:TriggerContext
Return the last scheduled execution time of the task, ornull
if not scheduled before.- 指定者:
lastScheduledExecutionTime
在接口中TriggerContext
lastActualExecutionTime
@Nullable public Date lastActualExecutionTime()
从接口复制的说明:TriggerContext
Return the last actual execution time of the task, ornull
if not scheduled before.- 指定者:
lastActualExecutionTime
在接口中TriggerContext
lastCompletionTime
@Nullable public Date lastCompletionTime()
从接口复制的说明:TriggerContext
Return the last completion time of the task, ornull
if not scheduled before.- 指定者:
lastCompletionTime
在接口中TriggerContext