public interface LastExecution
Trigger
class to determine the next scheduled timeout
or whether a run should be skipped.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentityName()
The name or ID of the identifiable object, as specified in the
ManagedTask.IDENTITY_NAME execution property of the task if
it also implements the ManagedTask interface. |
java.lang.Object |
getResult()
Result of the last execution.
|
default java.util.Date |
getRunEnd()
The last time in which the task was completed.
|
java.time.ZonedDateTime |
getRunEnd(java.time.ZoneId zone)
The time, in the specified time-zone, at which the
most recent execution of the task completed running.
|
default java.util.Date |
getRunStart()
The last time in which the task started running.
|
java.time.ZonedDateTime |
getRunStart(java.time.ZoneId zone)
The time, in the specified time-zone, at which the
most recent execution of the task started running.
|
default java.util.Date |
getScheduledStart()
The last time in which task was scheduled to run.
|
java.time.ZonedDateTime |
getScheduledStart(java.time.ZoneId zone)
The time, in the specified time-zone, at which the
most recent execution of the task was expected to start, per its schedule.
|
java.lang.String getIdentityName()
ManagedTask.IDENTITY_NAME
execution property of the task if
it also implements the ManagedTask
interface.java.lang.Object getResult()
default java.util.Date getScheduledStart()
The default implementation delegates to the method signature that
accepts a ZoneId
.
java.time.ZonedDateTime getScheduledStart(java.time.ZoneId zone)
zone
- time-zone ID.default java.util.Date getRunStart()
The default implementation delegates to the method signature that
accepts a ZoneId
.
java.time.ZonedDateTime getRunStart(java.time.ZoneId zone)
zone
- time-zone ID.default java.util.Date getRunEnd()
The default implementation delegates to the method signature that
accepts a ZoneId
.
java.time.ZonedDateTime getRunEnd(java.time.ZoneId zone)
zone
- time-zone ID.