|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.transaction.TransactionEntry
@ThreadSafe public class TransactionEntry
Information associated with a GlobalTransaction
about the transaction state.
Modification
)
IdentityLock
) that have been acquired by
this transaction so far
Constructor Summary | |
---|---|
TransactionEntry(Transaction tx)
|
Method Summary | |
---|---|
void |
addCacheLoaderModification(ReversibleCommand command)
|
void |
addLock(NodeLock l)
Adds a lock to the end of the lock list, if it isn't already present. |
void |
addLocks(Collection<NodeLock> newLocks)
Add multiple locks to the lock list. |
void |
addModification(ReversibleCommand command)
Adds a modification to the modification list. |
void |
addRemovedNode(Fqn fqn)
Adds the node that has been removed. |
List<ReversibleCommand> |
getCacheLoaderModifications()
|
List<Fqn> |
getDummyNodesCreatedByCacheLoader()
|
List<NodeLock> |
getLocks()
Returns the locks in use. |
List<ReversibleCommand> |
getModifications()
Returns all modifications. |
Option |
getOption()
Retrieves a transaction scope option override |
OrderedSynchronizationHandler |
getOrderedSynchronizationHandler()
|
List<Fqn> |
getRemovedNodes()
Gets the list of removed nodes. |
Transaction |
getTransaction()
Returns a local transaction associated with this TransactionEntry |
boolean |
hasModifications()
Returns true if modifications were registered to either modificationList or to class loader modifications list. |
boolean |
isForceAsyncReplication()
Gets the value of the forceAsyncReplication flag. |
boolean |
isForceSyncReplication()
Gets the value of the forceSyncReplication flag. |
void |
loadUninitialisedNode(Fqn fqn)
|
void |
releaseAllLocksFIFO(Object owner)
Releases all locks held by the owner, in order of creation. |
void |
releaseAllLocksLIFO(Object owner)
Releases all locks held by the owner, in reverse order of creation. |
void |
reset()
Cleans up internal state |
void |
setForceAsyncReplication(boolean forceAsyncReplication)
Sets the value of the forceAsyncReplication flag. |
void |
setForceSyncReplication(boolean forceSyncReplication)
Sets the value of the forceSyncReplication flag. |
void |
setOption(Option o)
Sets a transaction-scope option override |
void |
setOrderedSynchronizationHandler(OrderedSynchronizationHandler orderedSynchronizationHandler)
|
void |
setTransaction(Transaction tx)
Sets the local transaction for this entry. |
String |
toString()
Returns debug information about this transaction. |
void |
undoOperations()
Posts all undo operations to the CacheImpl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransactionEntry(Transaction tx) throws SystemException, RollbackException
SystemException
RollbackException
Method Detail |
---|
public void addModification(ReversibleCommand command)
public void addCacheLoaderModification(ReversibleCommand command)
public List<ReversibleCommand> getModifications()
public List<ReversibleCommand> getCacheLoaderModifications()
public void addRemovedNode(Fqn fqn)
fqn
- public List<Fqn> getRemovedNodes()
public void setTransaction(Transaction tx)
public Transaction getTransaction()
public void addLock(NodeLock l)
public void addLocks(Collection<NodeLock> newLocks)
newLocks
- Collectionpublic List<NodeLock> getLocks()
public void releaseAllLocksLIFO(Object owner)
public void releaseAllLocksFIFO(Object owner)
public boolean isForceAsyncReplication()
Cache.putForExternalRead(org.jboss.cache.Fqn,Object,Object)
within
a transactional context.
public void setForceAsyncReplication(boolean forceAsyncReplication)
Cache.putForExternalRead(org.jboss.cache.Fqn,Object,Object)
within
a transactional context. Also used by OptimisticReplicationInterceptor when dealing
with Option.setForceAsynchronous(boolean)
in a
non-transactional context (i.e. with an implicit transaction).
forceAsyncReplication
- value of forceAsyncReplicationpublic boolean isForceSyncReplication()
Cache.putForExternalRead(org.jboss.cache.Fqn,Object,Object)
within
a transactional context.
public void setForceSyncReplication(boolean forceSyncReplication)
Cache.putForExternalRead(org.jboss.cache.Fqn,Object,Object)
within
a transactional context.
forceSyncReplication
- value of forceSyncReplicationpublic void undoOperations()
public String toString()
toString
in class Object
public void loadUninitialisedNode(Fqn fqn)
public List<Fqn> getDummyNodesCreatedByCacheLoader()
public void setOption(Option o)
o
- public Option getOption()
public OrderedSynchronizationHandler getOrderedSynchronizationHandler()
public void setOrderedSynchronizationHandler(OrderedSynchronizationHandler orderedSynchronizationHandler)
public boolean hasModifications()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |