public class SimpleTriggerContext extends Object implements TriggerContext
TriggerContext interface.| Constructor and Description | 
|---|
| SimpleTriggerContext()Create a SimpleTriggerContext with all time values set to  null,
 exposing the system clock for the default time zone. | 
| SimpleTriggerContext(Clock clock)Create a SimpleTriggerContext with all time values set to  null,
 exposing the given clock. | 
| SimpleTriggerContext(Date lastScheduledExecutionTime,
                    Date lastActualExecutionTime,
                    Date lastCompletionTime)Create a SimpleTriggerContext with the given time values,
 exposing the system clock for the default time zone. | 
| Modifier and Type | Method and Description | 
|---|---|
| Clock | getClock()Return the clock to use for trigger calculation. | 
| Date | lastActualExecutionTime()Return the last actual execution time of the task,
 or  nullif not scheduled before. | 
| Date | lastCompletionTime()Return the last completion time of the task,
 or  nullif not scheduled before. | 
| Date | lastScheduledExecutionTime()Return the last scheduled execution time of the task,
 or  nullif not scheduled before. | 
| void | update(Date lastScheduledExecutionTime,
      Date lastActualExecutionTime,
      Date lastCompletionTime)Update this holder's state with the latest time values. | 
public SimpleTriggerContext()
null,
 exposing the system clock for the default time zone.public SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
lastScheduledExecutionTime - last scheduled execution timelastActualExecutionTime - last actual execution timelastCompletionTime - last completion timepublic SimpleTriggerContext(Clock clock)
null,
 exposing the given clock.clock - the clock to use for trigger calculationupdate(Date, Date, Date)public void update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
lastScheduledExecutionTime - last scheduled execution timelastActualExecutionTime - last actual execution timelastCompletionTime - last completion timepublic Clock getClock()
TriggerContextgetClock in interface TriggerContextTaskScheduler.getClock(), 
Clock.systemDefaultZone()@Nullable public Date lastScheduledExecutionTime()
TriggerContextnull if not scheduled before.lastScheduledExecutionTime in interface TriggerContext@Nullable public Date lastActualExecutionTime()
TriggerContextnull if not scheduled before.lastActualExecutionTime in interface TriggerContext@Nullable public Date lastCompletionTime()
TriggerContextnull if not scheduled before.lastCompletionTime in interface TriggerContext