Package com.oracle.microtx.lra.context
Class MicroTxLRAContext
java.lang.Object
com.oracle.microtx.lra.context.MicroTxLRAContext
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MicroTxLRAContext
public MicroTxLRAContext()
-
-
Method Details
-
set
Function to set the ThreadLocal vars- Parameters:
contextName
- Key that identifies the contextcontextMap
- Map associated with that context
-
get
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
Get LRA thread local context- Returns:
- LRA context object
-
set
Set LRA context object- Parameters:
lraContext
-
-