Class TaskId.TriggerBuilder<T extends Serializable>
java.lang.Object
org.sterl.spring.persistent_tasks.api.TaskId.TriggerBuilder<T>
- Enclosing class:
TaskId<T extends Serializable>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
correlationId
(String correlationId) An unique ID which is taken over to a chain/set of tasks.The ID of this task, same queued ids are replaced.static <T extends Serializable>
TaskId.TriggerBuilder<T> newTrigger
(String name) static <T extends Serializable>
TaskId.TriggerBuilder<T> newTrigger
(String name, T state) priority
(int priority) The higher thepriority
the earlier this task is picked.runAt
(OffsetDateTime when) when
(OffsetDateTime when) synonym forrunAt(OffsetDateTime)
-
Constructor Details
-
TriggerBuilder
public TriggerBuilder()
-
-
Method Details
-
newTrigger
-
newTrigger
-
build
-
id
The ID of this task, same queued ids are replaced. -
correlationId
An unique ID which is taken over to a chain/set of tasks. If task is triggered it in a task, this ID is taken over. -
state
-
priority
The higher thepriority
the earlier this task is picked. Same as JMS priority. Default is also 4, like in JMS.- Parameters:
priority
- custom priority e.g. 0-9, also higher numbers are supported- Returns:
- this
TaskId.TriggerBuilder
-
when
synonym forrunAt(OffsetDateTime)
-
runAt
-
runAfter
-