org.activemq.service.impl
Class AutoCommitTransaction
java.lang.Object
org.activemq.service.impl.AutoCommitTransaction
- All Implemented Interfaces:
- Transaction
public class AutoCommitTransaction
- extends Object
- implements Transaction
Keeps track of all the actions the need to be done when
a transaction does a commit or rollback.
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTO_COMMIT_TRANSACTION
public static final AutoCommitTransaction AUTO_COMMIT_TRANSACTION
addPostCommitTask
public void addPostCommitTask(TransactionTask task)
throws JMSException
- Specified by:
addPostCommitTask
in interface Transaction
- Throws:
JMSException
addPostRollbackTask
public void addPostRollbackTask(TransactionTask task)
throws JMSException
- Specified by:
addPostRollbackTask
in interface Transaction
- Throws:
JMSException
commit
public void commit(boolean onePhase)
throws XAException
- Specified by:
commit
in interface Transaction
- Throws:
XAException
rollback
public void rollback()
throws XAException
- Specified by:
rollback
in interface Transaction
- Throws:
XAException
prepare
public int prepare()
throws XAException
- Specified by:
prepare
in interface Transaction
- Throws:
XAException
isXaTransacted
public boolean isXaTransacted()
- Specified by:
isXaTransacted
in interface Transaction
getTransactionId
public Object getTransactionId()
- Specified by:
getTransactionId
in interface Transaction
Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.