Package org.apache.activemq.transaction
Class LocalTransaction
java.lang.Object
org.apache.activemq.transaction.Transaction
org.apache.activemq.transaction.LocalTransaction
-
Field Summary
Fields inherited from class org.apache.activemq.transaction.Transaction
FINISHED_STATE, IN_USE_STATE, postCommitTask, preCommitTask, PREPARED_STATE, START_STATE -
Constructor Summary
ConstructorsConstructorDescriptionLocalTransaction(TransactionStore transactionStore, org.apache.activemq.command.LocalTransactionId xid, ConnectionContext context) -
Method Summary
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 Details
-
LocalTransaction
public LocalTransaction(TransactionStore transactionStore, org.apache.activemq.command.LocalTransactionId xid, ConnectionContext context)
-
-
Method Details
-
commit
- Specified by:
commitin classTransaction- Throws:
XAExceptionIOException
-
rollback
- Specified by:
rollbackin classTransaction- Throws:
XAExceptionIOException
-
prepare
- Specified by:
preparein classTransaction- Throws:
XAException
-
getTransactionId
public org.apache.activemq.command.TransactionId getTransactionId()- Specified by:
getTransactionIdin classTransaction
-
getLog
public org.slf4j.Logger getLog()- Specified by:
getLogin classTransaction
-