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, setTransactionManager
public void enlistForDurableTwoPhase(Durable2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException
TransactionManager
enlistForDurableTwoPhase
in class TransactionManager
WrongStateException
UnknownTransactionException
SystemException
public void enlistForVolatileTwoPhase(Volatile2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException
TransactionManager
enlistForVolatileTwoPhase
in class TransactionManager
WrongStateException
UnknownTransactionException
SystemException
public int replay() throws SystemException
replay
in class TransactionManager
SystemException
public TxContext suspend() throws SystemException
TransactionManager
suspend
in class TransactionManager
SystemException
public void resume(TxContext tx) throws UnknownTransactionException, SystemException
TransactionManager
resume
in class TransactionManager
UnknownTransactionException
SystemException
public TxContext currentTransaction() throws SystemException
TransactionManager
currentTransaction
in class TransactionManager
SystemException
Copyright © 2017 JBoss by Red Hat. All rights reserved.