站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

TransactionEntry (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache
Class TransactionEntry

java.lang.Object
  extended byorg.jboss.cache.TransactionEntry

public class TransactionEntry
extends Object

This is the value (key being the GlobalTransaction) in the transaction table of TreeCache.
A TransactionEntry maintains

Version:
$Revision: 1.13.4.1 $
Author:
Bela Ban Apr 14, 2003

Field Summary
protected  List locks
          List of locks acquired by the transaction (IdentityLock)
protected  List modification_list
          List of modifications (MethodCall).
protected  List nodes
          List of nodes created.
protected  List txs
          List.
protected  List undo_list
          List.
 
Constructor Summary
TransactionEntry()
           
 
Method Summary
 void addLock(IdentityLock l)
           
 void addModification(org.jgroups.blocks.MethodCall m)
           
 void addNode(Fqn fqn)
           
 void addUndoOperation(org.jgroups.blocks.MethodCall m)
           
 List getLocks()
           
 List getModifications()
           
 List getNodes()
           
 List getTransactions()
          Returns a list of local transactions associated with this TransactionEntry
 List getUndoOperations()
           
 void releaseAllLocks(Object owner)
           
 void setTransaction(Transaction tx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

txs

protected List txs
List. Backpointer to the LocalTxs. Needed to remove entry from LocalTx-GlobalTx table (if non-null)


modification_list

protected List modification_list
List of modifications (MethodCall). They will be replicated on TX commit


undo_list

protected List undo_list
List. List of compensating MethodCall objects which revert the ones in modification_list. For each entry in the modification list, we have a corresponding entry in this list. A rollback will simply iterate over this list in reverse to undo the modifications. Note that these undo-ops will never be replicated.


nodes

protected List nodes
List of nodes created. Elements are fully qualified names (Fqns)


locks

protected List locks
List of locks acquired by the transaction (IdentityLock)

Constructor Detail

TransactionEntry

public TransactionEntry()
Method Detail

addModification

public void addModification(org.jgroups.blocks.MethodCall m)

getModifications

public List getModifications()

addUndoOperation

public void addUndoOperation(org.jgroups.blocks.MethodCall m)

getUndoOperations

public List getUndoOperations()

addNode

public void addNode(Fqn fqn)

getNodes

public List getNodes()

setTransaction

public void setTransaction(Transaction tx)

getTransactions

public List getTransactions()
Returns a list of local transactions associated with this TransactionEntry

Returns:

addLock

public void addLock(IdentityLock l)

getLocks

public List getLocks()

releaseAllLocks

public void releaseAllLocks(Object owner)

toString

public String toString()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.