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 StringbuildOrGetCorrelationId(String newCorrelationId) If no new correlation id is provided take either the one from any currently running trigger or its id.static voidstatic RunningTrigger<? extends Serializable> static Stringstatic voidsetContext(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.
-