org.apache.activemq.transaction
Class XATransaction
java.lang.Object
org.apache.activemq.transaction.Transaction
org.apache.activemq.transaction.XATransaction
public class XATransaction
- extends Transaction
Methods inherited from class org.apache.activemq.transaction.Transaction |
addSynchronization, doPostCommit, doPreCommit, fireAfterCommit, fireAfterRollback, fireBeforeCommit, getState, isPrepared, prePrepare, removeSynchronization, setState, size, toString, waitPostCommitDone |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XATransaction
public XATransaction(TransactionStore transactionStore,
XATransactionId xid,
TransactionBroker broker,
ConnectionId connectionId)
commit
public void commit(boolean onePhase)
throws javax.transaction.xa.XAException,
java.io.IOException
- Specified by:
commit
in class Transaction
- Throws:
javax.transaction.xa.XAException
java.io.IOException
rollback
public void rollback()
throws javax.transaction.xa.XAException,
java.io.IOException
- Specified by:
rollback
in class Transaction
- Throws:
javax.transaction.xa.XAException
java.io.IOException
prepare
public int prepare()
throws javax.transaction.xa.XAException,
java.io.IOException
- Specified by:
prepare
in class Transaction
- Throws:
javax.transaction.xa.XAException
java.io.IOException
getConnectionId
public ConnectionId getConnectionId()
getTransactionId
public TransactionId getTransactionId()
- Specified by:
getTransactionId
in class Transaction
getLog
public org.slf4j.Logger getLog()
- Specified by:
getLog
in class Transaction
getXid
public XATransactionId getXid()
Copyright © 2005-2016. All Rights Reserved.