public class QueueXaResource extends DefaultXASession<XaQueueTypeTransactionContextAdapter>
localContext, localXid, logger, resourceManagerTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
QueueXaResource(AbstractXAResourceManager xaResourceManager,
XaTransactionRecoverer xaTransactionRecoverer,
QueueProvider queueProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commitDanglingTransaction(Xid xid,
boolean onePhase)
Commits a dangling transaction that can be caused by the failure of one of the XAResource involved in the transaction or a
crash of the transaction manager.
|
protected XaQueueTypeTransactionContextAdapter |
createTransactionContext(Xid xid)
Creates a new transaction context with the given transaction identifier
|
Xid[] |
recover(int i) |
protected void |
rollbackDandlingTransaction(Xid xid)
Commits a dangling transaction that can be caused by the failure of one of the XAResource involved in the transaction or a
crash of the transaction manager.
|
commit, end, forget, getResourceManager, getTransactionContext, getTransactionTimeout, getXAResource, isSameRM, prepare, rollback, setTransactionTimeout, startpublic QueueXaResource(AbstractXAResourceManager xaResourceManager, XaTransactionRecoverer xaTransactionRecoverer, QueueProvider queueProvider)
protected void commitDanglingTransaction(Xid xid, boolean onePhase) throws XAException
DefaultXASessioncommitDanglingTransaction in class DefaultXASession<XaQueueTypeTransactionContextAdapter>xid - transaction identifieronePhase - if the commit should be done using only one phase commitXAExceptionprotected void rollbackDandlingTransaction(Xid xid) throws XAException
DefaultXASessionrollbackDandlingTransaction in class DefaultXASession<XaQueueTypeTransactionContextAdapter>xid - transaction identifierXAExceptionprotected XaQueueTypeTransactionContextAdapter createTransactionContext(Xid xid)
DefaultXASessioncreateTransactionContext in class DefaultXASession<XaQueueTypeTransactionContextAdapter>xid - transaction identifierpublic Xid[] recover(int i) throws XAException
XAExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.