|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Transaction keeps track of all the tasks that must be run before and after transactional events.
Method Summary | |
void |
cleanUpClient(BrokerClient client)
A hint to the TransactionManager that an BrokerClient has stopped This enables the TransactionManager to rollback in progess transactions that the client created. |
Transaction |
createLocalTransaction(BrokerClient client,
String txid)
|
Transaction |
createXATransaction(BrokerClient client,
ActiveMQXid xid)
|
Transaction |
getContexTransaction()
|
Transaction |
getLocalTransaction(String txid)
|
ActiveMQXid[] |
getPreparedXATransactions()
|
Transaction |
getXATransaction(ActiveMQXid xid)
|
void |
loadTransaction(ActiveMQXid xid,
Transaction transaction)
Called on restart when recovering prepared transactions to reload a transaction from persistent store |
void |
setContexTransaction(Transaction tx)
|
Methods inherited from interface org.codehaus.activemq.service.Service |
start, stop |
Method Detail |
public void setContexTransaction(Transaction tx)
public Transaction getContexTransaction()
public Transaction createLocalTransaction(BrokerClient client, String txid) throws JMSException
JMSException
public Transaction getLocalTransaction(String txid) throws JMSException
JMSException
public Transaction createXATransaction(BrokerClient client, ActiveMQXid xid) throws XAException
XAException
public Transaction getXATransaction(ActiveMQXid xid) throws XAException
XAException
public ActiveMQXid[] getPreparedXATransactions() throws XAException
XAException
public void cleanUpClient(BrokerClient client) throws JMSException
client
-
JMSException
public void loadTransaction(ActiveMQXid xid, Transaction transaction) throws XAException
xid
- transaction
-
XAException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |