org.apache.activemq.transaction
Class XATransaction

java.lang.Object
  extended by org.apache.activemq.transaction.Transaction
      extended by org.apache.activemq.transaction.XATransaction

public class XATransaction
extends Transaction


Field Summary
 
Fields inherited from class org.apache.activemq.transaction.Transaction
FINISHED_STATE, IN_USE_STATE, postCommitTask, preCommitTask, PREPARED_STATE, START_STATE
 
Constructor Summary
XATransaction(TransactionStore transactionStore, XATransactionId xid, TransactionBroker broker, ConnectionId connectionId)
           
 
Method Summary
 void commit(boolean onePhase)
           
 ConnectionId getConnectionId()
           
 Logger getLog()
           
 TransactionId getTransactionId()
           
 XATransactionId getXid()
           
 int prepare()
           
 void rollback()
           
 
Methods inherited from class org.apache.activemq.transaction.Transaction
addSynchronization, doPostCommit, doPreCommit, findMatching, 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
 

Constructor Detail

XATransaction

public XATransaction(TransactionStore transactionStore,
                     XATransactionId xid,
                     TransactionBroker broker,
                     ConnectionId connectionId)
Method Detail

commit

public void commit(boolean onePhase)
            throws XAException,
                   IOException
Specified by:
commit in class Transaction
Throws:
XAException
IOException

rollback

public void rollback()
              throws XAException,
                     IOException
Specified by:
rollback in class Transaction
Throws:
XAException
IOException

prepare

public int prepare()
            throws XAException,
                   IOException
Specified by:
prepare in class Transaction
Throws:
XAException
IOException

getConnectionId

public ConnectionId getConnectionId()

getTransactionId

public TransactionId getTransactionId()
Specified by:
getTransactionId in class Transaction

getLog

public Logger getLog()
Specified by:
getLog in class Transaction

getXid

public XATransactionId getXid()


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.