Class RunningTriggerContextHolder

java.lang.Object
org.sterl.spring.persistent_tasks.api.task.RunningTriggerContextHolder

public class RunningTriggerContextHolder extends Object
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 Details

    • RunningTriggerContextHolder

      public RunningTriggerContextHolder()
  • Method Details

    • clearContext

      public static void clearContext()
    • getContext

      public static RunningTrigger<? extends Serializable> getContext()
    • setContext

      public static void setContext(RunningTrigger<? extends Serializable> context)
    • getCorrelationId

      public static String getCorrelationId()
    • buildOrGetCorrelationId

      public static String buildOrGetCorrelationId(String newCorrelationId)
      If no new correlation id is provided take either the one from any currently running trigger or its id.