|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.TransactionEntry
public class TransactionEntry
This is the value (key being the GlobalTransaction
) in the transaction table
of TreeCache.
A TransactionEntry maintains
IdentityLock
) that have been acquired by
this transaction so far
Field Summary | |
---|---|
protected java.util.List |
cl_mod_list
|
protected java.util.List |
dummyNodesCreatedByCacheLoader
A list of dummy uninitialised nodes created by the cache loader interceptor to load data for a given node in this tx. |
protected java.util.List |
locks
List IdentityLock ) |
protected javax.transaction.Transaction |
ltx
Local transaction |
protected java.util.List |
modification_list
List MethodCall ). |
protected Option |
option
|
protected java.util.List |
undo_list
List |
Constructor Summary | |
---|---|
TransactionEntry()
Constructs a new TransactionEntry. |
Method Summary | |
---|---|
void |
addCacheLoaderModification(org.jgroups.blocks.MethodCall m)
|
void |
addLock(IdentityLock l)
Adds a lock to the end of the lock list. |
void |
addLocks(java.util.Collection newLocks)
Add multiple locks to the lock list. |
void |
addModification(org.jgroups.blocks.MethodCall m)
Adds a modification to the modification list. |
void |
addUndoOperation(org.jgroups.blocks.MethodCall m)
Adds an undo operation to the undo list. |
java.util.List |
getCacheLoaderModifications()
|
java.util.List |
getDummyNodesCreatedByCacheLoader()
|
java.util.List |
getLocks()
Returns the locks in use. |
java.util.List |
getModifications()
Returns all modifications. |
Option |
getOption()
Retrieves a transaction scope option override |
javax.transaction.Transaction |
getTransaction()
Returns a local transaction associated with this TransactionEntry |
java.util.List |
getUndoOperations()
Returns the undo operations in use. |
void |
loadUninitialisedNode(Fqn fqn)
|
void |
releaseAllLocks(java.lang.Object owner)
Deprecated. don't think this is used anymore |
void |
releaseAllLocksFIFO(java.lang.Object owner)
Releases all locks held by the owner, in order of creation. |
void |
releaseAllLocksLIFO(java.lang.Object owner)
Releases all locks held by the owner, in reverse order of creation. |
void |
setOption(Option o)
Sets a transaction-scope option override |
void |
setTransaction(javax.transaction.Transaction tx)
Sets the local transaction for this entry. |
java.lang.String |
toString()
Returns debug information about this transaction. |
void |
undoOperations(TreeCache cache)
Posts all undo operations to the TreeCache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.transaction.Transaction ltx
protected Option option
protected java.util.List modification_list
MethodCall
). They will be replicated on TX commit
protected java.util.List cl_mod_list
protected java.util.List undo_list
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.
protected java.util.List locks
IdentityLock
)
protected java.util.List dummyNodesCreatedByCacheLoader
Constructor Detail |
---|
public TransactionEntry()
Method Detail |
---|
public void addModification(org.jgroups.blocks.MethodCall m)
public void addCacheLoaderModification(org.jgroups.blocks.MethodCall m)
public java.util.List getModifications()
public java.util.List getCacheLoaderModifications()
public void addUndoOperation(org.jgroups.blocks.MethodCall m)
undoOperations(org.jboss.cache.TreeCache)
public java.util.List getUndoOperations()
public void setTransaction(javax.transaction.Transaction tx)
public javax.transaction.Transaction getTransaction()
public void addLock(IdentityLock l)
public void addLocks(java.util.Collection newLocks)
newLocks
- Collectionpublic java.util.List getLocks()
public void releaseAllLocks(java.lang.Object owner)
releaseAllLocksFIFO(java.lang.Object)
.
public void releaseAllLocksLIFO(java.lang.Object owner)
public void releaseAllLocksFIFO(java.lang.Object owner)
public void undoOperations(TreeCache cache)
public java.lang.String toString()
toString
in class java.lang.Object
public void loadUninitialisedNode(Fqn fqn)
public java.util.List getDummyNodesCreatedByCacheLoader()
public void setOption(Option o)
o
- public Option getOption()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |