Class RunningTriggerEntity
java.lang.Object
org.sterl.spring.persistent_tasks.trigger.model.RunningTriggerEntity
- All Implemented Interfaces:
HasTrigger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyData()
void
finishTriggerWithStatus
(TriggerStatus status, Exception e) getKey()
boolean
runAt
(OffsetDateTime runAt) withState
(byte[] state) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sterl.spring.persistent_tasks.shared.model.HasTrigger
executionCount, getData, isRunning, key, newTaskId, shouldRunInFuture, status
-
Constructor Details
-
RunningTriggerEntity
-
-
Method Details
-
getKey
-
complete
- Parameters:
e
- Sets eitherTriggerStatus.SUCCESS
orTriggerStatus.FAILED
based if theException
isnull
or not.
-
cancel
-
finishTriggerWithStatus
-
runOn
-
runAt
-
withState
-
isWaiting
public boolean isWaiting() -
copyData
-