|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mq.pm.TxManager
This class allows provides the base for user supplied persistence packages.
| Constructor Summary | |
TxManager(PersistenceManager pm)
Create a new TxManager |
|
| Method Summary | |
void |
addPostCommitTask(Tx txId,
Runnable task)
Add an operation for after a commit |
void |
addPostRollbackTask(Tx txId,
Runnable task)
Add an operation for after a rollback |
void |
commitTx(Tx txId)
Commit the transaction to the persistent store. |
Tx |
createTx()
Create and return a unique transaction id. |
Tx |
createTx(ConnectionToken dc,
Object xid)
Create and return a unique transaction id. |
Tx |
getPrepared(ConnectionToken dc,
Object xid)
Return the local transaction id for a distributed transaction id. |
void |
rollbackTx(Tx txId)
Rollback the transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TxManager(PersistenceManager pm)
pm - the persistence manager| Method Detail |
public final Tx getPrepared(ConnectionToken dc, Object xid) throws javax.jms.JMSException
dc - the connectionxid - the transaction id
javax.jms.JMSException - Description of Exceptionpublic final Tx createTx() throws javax.jms.JMSException
javax.jms.JMSException - for any errorpublic final void commitTx(Tx txId) throws javax.jms.JMSException
txId - the transaction
javax.jms.JMSException - for any errorpublic void addPostCommitTask(Tx txId, Runnable task) throws javax.jms.JMSException
txId - the transactiontask - the task
javax.jms.JMSException - for any errorpublic void rollbackTx(Tx txId) throws javax.jms.JMSException
txId - the transaction
javax.jms.JMSException - for any errorpublic void addPostRollbackTask(Tx txId, Runnable task) throws javax.jms.JMSException
txId - the transactiontask - the task
javax.jms.JMSException - for any errorpublic Tx createTx(ConnectionToken dc, Object xid) throws javax.jms.JMSException
dc - the connection tokenxid - the xid
javax.jms.JMSException - for any error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||