Package org.apache.activemq.transaction
Class LocalTransaction
- java.lang.Object
-
- org.apache.activemq.transaction.Transaction
-
- org.apache.activemq.transaction.LocalTransaction
-
public class LocalTransaction 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
Constructors Constructor Description LocalTransaction(TransactionStore transactionStore, LocalTransactionId xid, ConnectionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(boolean onePhase)
org.slf4j.Logger
getLog()
TransactionId
getTransactionId()
int
prepare()
void
rollback()
-
Methods inherited from class org.apache.activemq.transaction.Transaction
addSynchronization, doPostCommit, doPreCommit, findMatching, fireAfterCommit, fireAfterRollback, fireBeforeCommit, getState, isCommitted, isPrepared, isRollbackOnly, newXAException, prePrepare, removeSynchronization, setCommitted, setRollbackOnly, setState, size, toString, waitPostCommitDone
-
-
-
-
Constructor Detail
-
LocalTransaction
public LocalTransaction(TransactionStore transactionStore, LocalTransactionId xid, ConnectionContext context)
-
-
Method Detail
-
commit
public void commit(boolean onePhase) throws XAException, IOException
- Specified by:
commit
in classTransaction
- Throws:
XAException
IOException
-
rollback
public void rollback() throws XAException, IOException
- Specified by:
rollback
in classTransaction
- Throws:
XAException
IOException
-
prepare
public int prepare() throws XAException
- Specified by:
prepare
in classTransaction
- Throws:
XAException
-
getTransactionId
public TransactionId getTransactionId()
- Specified by:
getTransactionId
in classTransaction
-
getLog
public org.slf4j.Logger getLog()
- Specified by:
getLog
in classTransaction
-
-