Class RunningTriggerContextHolder
java.lang.Object
org.sterl.spring.persistent_tasks.api.task.RunningTriggerContextHolder
The
RunningTrigger
state will be provided by this context holder to any thread.
Furthermore the correlationId of this context is preferred if a context is found.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildOrGetCorrelationId
(String newCorrelationId) If no new correlation id is provided take either the one from any currently running trigger or its id.static void
static RunningTrigger
<? extends Serializable> static String
static void
setContext
(RunningTrigger<? extends Serializable> context)
-
Constructor Details
-
RunningTriggerContextHolder
public RunningTriggerContextHolder()
-
-
Method Details
-
clearContext
public static void clearContext() -
getContext
-
setContext
-
getCorrelationId
-
buildOrGetCorrelationId
If no new correlation id is provided take either the one from any currently running trigger or its id.
-