Class ThreadActionData
java.lang.Object
com.arjuna.ats.internal.arjuna.thread.ThreadActionData
This class maintains a mapping between a thread and its notion of the current
transaction. Essentially this is a stack of transactions.
- Since:
- JTS 1.0.
- Version:
- $Id: ThreadActionData.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Add a per thread setup object to the global list.static BasicAction
static BasicAction
static BasicAction
popAction
(boolean unregister) static BasicAction
static BasicAction
By setting the unregister flag accordingly, information about the thread is not removed from the action.static void
purgeAction
(BasicAction act) static void
purgeAction
(BasicAction act, Thread t) static void
purgeAction
(BasicAction act, Thread t, boolean unregister) static void
static void
static void
purgeActions
(Thread t, boolean unregister) static void
static void
pushAction
(BasicAction a, boolean register) By setting the register flag accordingly, information about the thread may not be propagated to the action, i.e., only the thread's notion of current changes.static boolean
Remove a per thread setup object to the global list.static void
Put back the entire hierarchy, removing whatever is already there.
-
Constructor Details
-
ThreadActionData
public ThreadActionData()
-
-
Method Details
-
currentAction
-
pushAction
-
pushAction
By setting the register flag accordingly, information about the thread may not be propagated to the action, i.e., only the thread's notion of current changes. -
restoreActions
Put back the entire hierarchy, removing whatever is already there. -
popAction
- Throws:
NoSuchElementException
-
popAction
- Throws:
NoSuchElementException
-
popAction
- Throws:
NoSuchElementException
-
popAction
public static BasicAction popAction(String threadId, boolean unregister) throws NoSuchElementException By setting the unregister flag accordingly, information about the thread is not removed from the action.- Throws:
NoSuchElementException
-
purgeAction
- Throws:
NoSuchElementException
-
purgeAction
- Throws:
NoSuchElementException
-
purgeAction
public static void purgeAction(BasicAction act, Thread t, boolean unregister) throws NoSuchElementException - Throws:
NoSuchElementException
-
purgeActions
public static void purgeActions() -
purgeActions
-
purgeActions
-
addSetup
Add a per thread setup object to the global list. This should only happen before the transaction service really begins, or you risk having some threads see one view of the list that is different to other threads.- Parameters:
s
- the setup to add.
-
removeSetup
Remove a per thread setup object to the global list. This should only happen after the transaction service really ends, or you risk having some threads see one view of the list that is different to other threads.- Parameters:
s
- the setup to add.
-