| |
|
| java.lang.Object com.tc.object.tx.ThreadTransactionContext
ThreadTransactionContext | public class ThreadTransactionContext (Code) | | We have two concepts. Transactions which carry changes/creates etc... And the locks That are associated with those
transactions. Transactions need to be created and then continued until the next transaction exit (in other words not
just until the next begin) if we are to maintain proper semantics/ordering. The Locks on the otherhand work more like
a stack. When a block is entered the locks get pushed onto the stack and associated with the current transaction and
when they are exited they are removed from the current transaction. This class maintains both the current transaction
and the stack of contexts that are associated with the thread.
|
|
|
|