|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.pm.TxManager
public class TxManager
This class allows provides the base for user supplied persistence packages.
| Nested Class Summary | |
|---|---|
static class |
TxManager.PreparedInfo
Information about a prepared global transaction |
| 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(ConnectionToken dc,
Object xid)
Commit the transaction to the persistent store. |
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)
Deprecated. |
Map |
getPreparedTransactions()
Get the prepared transactions |
void |
markPrepared(ConnectionToken dc,
Object xid,
Tx txId)
Mark the transaction branch as prepared |
Xid[] |
recover(ConnectionToken dc,
int flags)
Recover |
void |
restoreTx(Tx txId)
Restore a prepared transaction |
void |
rollbackTx(ConnectionToken dc,
Object xid)
Rollback the transaction |
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 Exception
public final Tx createTx()
throws javax.jms.JMSException
javax.jms.JMSException - for any error
public final void commitTx(Tx txId)
throws javax.jms.JMSException
txId - the transaction
javax.jms.JMSException - for any error
public final void commitTx(ConnectionToken dc,
Object xid)
throws javax.jms.JMSException
dc - the connection tokenxid - the transaction
javax.jms.JMSException - for any error
public void addPostCommitTask(Tx txId,
Runnable task)
throws javax.jms.JMSException
txId - the transactiontask - the task
javax.jms.JMSException - for any error
public void rollbackTx(Tx txId)
throws javax.jms.JMSException
txId - the transaction
javax.jms.JMSException - for any error
public final void rollbackTx(ConnectionToken dc,
Object xid)
throws javax.jms.JMSException
dc - the connection tokenxid - the transaction
javax.jms.JMSException - for any error
public void addPostRollbackTask(Tx txId,
Runnable task)
throws javax.jms.JMSException
txId - the transactiontask - the task
javax.jms.JMSException - for any error
public Tx createTx(ConnectionToken dc,
Object xid)
throws javax.jms.JMSException
dc - the connection tokenxid - the xid
javax.jms.JMSException - for any error
public void restoreTx(Tx txId)
throws javax.jms.JMSException
txId - the transaction id
javax.jms.JMSException - for any error
public void markPrepared(ConnectionToken dc,
Object xid,
Tx txId)
throws javax.jms.JMSException
dc - the connection tokenxid - the xidtxId - the transaction
javax.jms.JMSException - for any error
public Xid[] recover(ConnectionToken dc,
int flags)
throws Exception
Recoverable
recover in interface Recoverabledc - the connnection tokenflags - the recovery flags
Exception - for any errorpublic Map getPreparedTransactions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||