org.codehaus.activemq.service
Interface Transaction
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- AbstractTransaction
- public interface Transaction
- extends Serializable
A Transaction keeps track of all the tasks
that must be run before and after transactional events.
- Version:
- $Revision: 1.4 $
addPrePrepareTask
public void addPrePrepareTask(TransactionTask task)
addPostCommitTask
public void addPostCommitTask(TransactionTask task)
addPostRollbackTask
public void addPostRollbackTask(TransactionTask task)
commit
public void commit(boolean onePhase)
throws XAException
- Throws:
XAException
rollback
public void rollback()
throws XAException
- Throws:
XAException
prepare
public int prepare()
throws XAException
- Throws:
XAException
setBroker
public void setBroker(Broker broker)
- Called when this transaction has been recovered from disk
to re-associate it with the broker in which its being applied.
- Parameters:
broker
-
Copyright © 2004 Protique, Ltd.. All Rights Reserved.