public class TransactionManagerImple extends TransactionManager
| Constructor and Description |
|---|
TransactionManagerImple() |
| Modifier and Type | Method and Description |
|---|---|
TxContext |
currentTransaction()
The currentTransaction method returns the TxContext for the current
transaction, or null if there is none.
|
void |
enlistForDurableTwoPhase(Durable2PCParticipant tpp,
String id)
Enlist the specified participant with current transaction such that it
will participate in the 2PC protocol; a unique identifier for the
participant is also required.
|
void |
enlistForVolatileTwoPhase(Volatile2PCParticipant tpp,
String id)
Enlist the specified participant with current transaction such that it
will participate in the Volatile 2PC protocol; a unique identifier for
the participant is also required.
|
int |
replay() |
void |
resume(TxContext tx)
The resume method can be used to (re-)associate a thread with a
transaction(s) via its TxContext.
|
TxContext |
suspend()
A thread of control may require periods of non-transactionality so that
it may perform work that is not associated with a specific transaction.
|
getTransactionManager, setTransactionManagerpublic void enlistForDurableTwoPhase(Durable2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException
TransactionManagerenlistForDurableTwoPhase in class TransactionManagerWrongStateExceptionUnknownTransactionExceptionSystemExceptionpublic void enlistForVolatileTwoPhase(Volatile2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException
TransactionManagerenlistForVolatileTwoPhase in class TransactionManagerWrongStateExceptionUnknownTransactionExceptionSystemExceptionpublic int replay()
throws SystemException
replay in class TransactionManagerSystemExceptionpublic TxContext suspend() throws SystemException
TransactionManagersuspend in class TransactionManagerSystemExceptionpublic void resume(TxContext tx) throws UnknownTransactionException, SystemException
TransactionManagerresume in class TransactionManagerUnknownTransactionExceptionSystemExceptionpublic TxContext currentTransaction() throws SystemException
TransactionManagercurrentTransaction in class TransactionManagerSystemExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.