Class MicroTxLRAContext

java.lang.Object
com.oracle.microtx.lra.context.MicroTxLRAContext

public class MicroTxLRAContext extends Object
  • Constructor Details

    • MicroTxLRAContext

      public MicroTxLRAContext()
  • Method Details

    • set

      public static void set(String contextName, HashMap<String,List<String>> contextMap)
      Function to set the ThreadLocal vars
      Parameters:
      contextName - Key that identifies the context
      contextMap - Map associated with that context
    • get

      public static HashMap<String,List<String>> get(String contextName)
      Function to set the ThreadLocal vars
      Parameters:
      contextName - Key that identifies the context
      Returns:
      Map associated with that context
    • remove

      public static void remove()
      Clears all the saved contexts from the ThreadLocal
    • get

      public static HashMap<String,HashMap<String,List<String>>> get()
      Get LRA thread local context
      Returns:
      LRA context object
    • set

      public static void set(HashMap<String,HashMap<String,List<String>>> lraContext)
      Set LRA context object
      Parameters:
      lraContext -