TriggerContext interface.
| Modifier and Type | Field and Description |
|---|---|
| private final Clock | |
| private volatile Instant | |
| private volatile Instant | |
| private volatile Instant |
| Access | Constructor and Description |
|---|---|
| public | SimpleTriggerContext()
Create a SimpleTriggerContext with all time values set to |
| public | SimpleTriggerContext(Date
last scheduled execution time lastScheduledExecutionTime, Date last actual execution time lastActualExecutionTime, Date last completion time lastCompletionTime)
Deprecated
since 6.0. as of 6.0, in favor of
Create a SimpleTriggerContext with the given time values,
exposing the system clock for the default time zone.
SimpleTriggerContext(Instant, Instant, Instant)
|
| public | SimpleTriggerContext(Instant
last scheduled execution time lastScheduledExecution, Instant last actual execution time lastActualExecution, Instant last completion time lastCompletion)Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone. |
| public | SimpleTriggerContext(Clock
the clock to use for trigger calculation clock)Create a SimpleTriggerContext with all time values set to |
| Modifier and Type | Method and Description |
|---|---|
| public Clock | getClock()
Overrides default org. |
| public Instant | lastActualExecution()
Implements org. null if not scheduled before.
|
| public Instant | lastCompletion()
Implements org. null if not scheduled before.
|
| public Instant | lastScheduledExecution()
Implements org. null if not scheduled before.
|
| private static Instant | |
| public void | update(Date
last scheduled execution time lastScheduledExecutionTime, Date last actual execution time lastActualExecutionTime, Date last completion time lastCompletionTime)
Deprecated
since 6.0. as of 6.0, in favor of
Update this holder's state with the latest time values.
update(Instant, Instant, Instant)
|
| public void |
| clock | back to summary |
|---|---|
| private final Clock clock | |
| lastActualExecution | back to summary |
|---|---|
| private volatile Instant lastActualExecution
| |
| lastCompletion | back to summary |
|---|---|
| private volatile Instant lastCompletion
| |
| lastScheduledExecution | back to summary |
|---|---|
| private volatile Instant lastScheduledExecution
| |
| SimpleTriggerContext | back to summary |
|---|---|
| public SimpleTriggerContext() Create a SimpleTriggerContext with all time values set to | |
| SimpleTriggerContext | back to summary |
|---|---|
| public SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
Create a SimpleTriggerContext with the given time values, exposing the system clock for the default time zone.
| |
| SimpleTriggerContext | back to summary |
|---|---|
| public 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 | back to summary |
|---|---|
| public SimpleTriggerContext(Clock clock) Create a SimpleTriggerContext with all time values set to
| |
| getClock | back to summary |
|---|---|
| public Clock getClock() Overrides default org. Doc from org. Return the clock to use for trigger calculation. Defaults to
| |
| lastActualExecution | back to summary |
|---|---|
| public Instant lastActualExecution() Implements org. Doc from org. Return the last actual execution time of the task,
or | |
| lastCompletion | back to summary |
|---|---|
| public Instant lastCompletion() Implements org. Doc from org. Return the last completion time of the task,
or | |
| lastScheduledExecution | back to summary |
|---|---|
| public Instant lastScheduledExecution() Implements org. Doc from org. Return the last scheduled execution time of the task,
or | |
| toInstant | back to summary |
|---|---|
private static Instant toInstant(Date date)
| |
| update | back to summary |
|---|---|
| public void update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)
Update this holder's state with the latest time values.
| |
| update | back to summary |
|---|---|
| public void update(Instant lastScheduledExecution, Instant lastActualExecution, Instant lastCompletion) Update this holder's state with the latest time values. | |