|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.TransactionTable
public class TransactionTable
Maintains the mapping between local (Transaction) and global transactions (GlobalTransaction). Also keys modifications and undo-operations) under a given TX.
Field Summary | |
---|---|
protected java.util.Map |
tx_map
Map |
protected java.util.Map |
txs
Map |
Constructor Summary | |
---|---|
TransactionTable()
Constructs a new table. |
Method Summary | |
---|---|
void |
addCacheLoaderModification(GlobalTransaction gtx,
org.jgroups.blocks.MethodCall m)
|
void |
addLock(GlobalTransaction gtx,
IdentityLock l)
Adds a lock to the global transaction. |
void |
addLocks(GlobalTransaction gtx,
java.util.Collection locks)
Adds a collection of locks to the global transaction. |
void |
addModification(GlobalTransaction gtx,
org.jgroups.blocks.MethodCall m)
Adds a motification to the global transaction. |
void |
addUndoOperation(GlobalTransaction gtx,
org.jgroups.blocks.MethodCall m)
Adds an undo operation to the global transaction. |
TransactionEntry |
get(GlobalTransaction gtx)
Returns the local transaction entry for the global transaction. |
GlobalTransaction |
get(javax.transaction.Transaction tx)
Returns the global transaction associated with the local transaction. |
javax.transaction.Transaction |
getLocalTransaction(GlobalTransaction gtx)
Returns the local transaction associated with a GlobalTransaction. |
int |
getNumGlobalTransactions()
Returns the number of global transactions. |
int |
getNumLocalTransactions()
Returns the number of local transactions. |
void |
put(GlobalTransaction tx,
TransactionEntry entry)
Associates the global transaction with a transaction entry. |
void |
put(javax.transaction.Transaction tx,
GlobalTransaction gtx)
Associates the global transaction with the local transaction. |
TransactionEntry |
remove(GlobalTransaction tx)
Removes a global transation, returns the old transaction entry. |
GlobalTransaction |
remove(javax.transaction.Transaction tx)
Removes a local transation, returns the global transaction entry. |
java.lang.String |
toString()
Returns summary debug information. |
java.lang.String |
toString(boolean print_details)
Returns detailed debug information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map tx_map
protected java.util.Map txs
Constructor Detail |
---|
public TransactionTable()
Method Detail |
---|
public int getNumLocalTransactions()
public int getNumGlobalTransactions()
public GlobalTransaction get(javax.transaction.Transaction tx)
public javax.transaction.Transaction getLocalTransaction(GlobalTransaction gtx)
gtx
- The GlobalTransaction
public void put(javax.transaction.Transaction tx, GlobalTransaction gtx)
public TransactionEntry get(GlobalTransaction gtx)
public void put(GlobalTransaction tx, TransactionEntry entry)
public TransactionEntry remove(GlobalTransaction tx)
public GlobalTransaction remove(javax.transaction.Transaction tx)
public void addModification(GlobalTransaction gtx, org.jgroups.blocks.MethodCall m)
public void addCacheLoaderModification(GlobalTransaction gtx, org.jgroups.blocks.MethodCall m)
public void addUndoOperation(GlobalTransaction gtx, org.jgroups.blocks.MethodCall m)
public void addLock(GlobalTransaction gtx, IdentityLock l)
public void addLocks(GlobalTransaction gtx, java.util.Collection locks)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean print_details)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |