public class

SimpleTriggerContext

extends Object
implements TriggerContext
java.lang.Object
   ↳ org.springframework.scheduling.support.SimpleTriggerContext

Class Overview

Simple data holder implementation of the TriggerContext interface.

Summary

Public Constructors
SimpleTriggerContext()
Public Methods
Date lastActualExecutionTime()
Return the last actual execution time of the task, or null if not scheduled before.
Date lastCompletionTime()
Return the last completion time of the task, or null if not scheduled before.
Date lastScheduledExecutionTime()
Return the last scheduled execution time of the task, or null if not scheduled before.
void update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
Update this holder's state with the latest time values.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.scheduling.TriggerContext

Public Constructors

public SimpleTriggerContext ()

Public Methods

public Date lastActualExecutionTime ()

Return the last actual execution time of the task, or null if not scheduled before.

public Date lastCompletionTime ()

Return the last completion time of the task, or null if not scheduled before.

public Date lastScheduledExecutionTime ()

Return the last scheduled execution time of the task, or null if not scheduled before.

public void update (Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)

Update this holder's state with the latest time values.

Parameters
lastScheduledExecutionTime last scheduled execution time
lastActualExecutionTime last actual execution time
lastCompletionTime last completion time