Interface TriggerLifeCycleEvent
- All Superinterfaces:
HasTrigger
,PersistentTasksEvent
- All Known Implementing Classes:
TriggerAddedEvent
,TriggerCanceledEvent
,TriggerExpiredEvent
,TriggerFailedEvent
,TriggerResumedEvent
,TriggerRunningEvent
,TriggerSuccessEvent
Tag any events which are fired in case something changes on a trigger.
The attached data is already a copy, any modification to this data will have no effect.
-
Method Summary
Methods inherited from interface org.sterl.spring.persistent_tasks.shared.model.HasTrigger
executionCount, isRunning, key, newTaskId, shouldRunInFuture, status
-
Method Details
-
getData
- Specified by:
getData
in interfaceHasTrigger
-
id
Long id() -
getId
- Specified by:
getId
in interfaceHasTrigger
-
data
TriggerEntity data() -
state
-
isDone
boolean isDone()If a trigger is done, it finished it's execution either successfully or with an final error without retries left.- Returns:
true
if the trigger was completed, either with success, error or canceled.
-
timePassedMs
default long timePassedMs()
-