|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.mw.wst.TransactionManager
This is the interface that the core exposes in order to allow different types of participants to be enrolled. The messaging layer continues to work in terms of the registrar, but internally we map to one of these methods. This could also be the interface that high-level users see (e.g., at the application Web Service). As with UserTransaction a TransactionManager does not represent a specific transaction, but rather is responsible for providing access to an implicit per-thread transaction context.
Constructor Summary | |
TransactionManager()
|
Method Summary | |
abstract TxContext |
currentTransaction()
The currentTransaction method returns the TxContext for the current transaction, or null if there is none. |
abstract void |
enlistForDurableTwoPhase(Durable2PCParticipant tpp,
java.lang.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. |
abstract void |
enlistForVolatileTwoPhase(Volatile2PCParticipant pzp,
java.lang.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. |
static TransactionManager |
getTransactionManager()
Get the transaction manager. |
abstract int |
replay()
|
abstract void |
resume(TxContext txContext)
The resume method can be used to (re-)associate a thread with a transaction(s) via its TxContext. |
static void |
setTransactionManager(TransactionManager manager)
Set the transaction manager. |
abstract 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionManager()
Method Detail |
public static TransactionManager getTransactionManager()
public static void setTransactionManager(TransactionManager manager)
manager
- The transaction manager.public abstract void enlistForVolatileTwoPhase(Volatile2PCParticipant pzp, java.lang.String id) throws WrongStateException, UnknownTransactionException, AlreadyRegisteredException, SystemException
WrongStateException
UnknownTransactionException
AlreadyRegisteredException
SystemException
public abstract void enlistForDurableTwoPhase(Durable2PCParticipant tpp, java.lang.String id) throws WrongStateException, UnknownTransactionException, AlreadyRegisteredException, SystemException
WrongStateException
UnknownTransactionException
AlreadyRegisteredException
SystemException
public abstract int replay() throws SystemException
SystemException
public abstract void resume(TxContext txContext) throws UnknownTransactionException, SystemException
UnknownTransactionException
SystemException
public abstract TxContext suspend() throws SystemException
SystemException
public abstract TxContext currentTransaction() throws SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |