public class MVCCTransactionContext extends AbstractTransactionContext
Constructor and Description |
---|
MVCCTransactionContext(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
void |
clearLookedUpNodes()
Clears the registry of looked up nodes.
|
Map<Fqn,NodeSPI> |
getLookedUpNodes()
Retrieves a map of nodes looked up within the current invocation's scope.
|
NodeSPI |
lookUpNode(Fqn fqn)
Retrieves a node from the registry of looked up nodes in the current scope.
|
void |
putLookedUpNode(Fqn f,
NodeSPI n)
Puts an entry in the registry of looked up nodes in the current scope.
|
void |
putLookedUpNodes(Map<Fqn,NodeSPI> lookedUpNodes) |
void |
reset()
Cleans up internal state, freeing up references.
|
addAllLocks, addDummyNodeCreatedByCacheLoader, addLocalModification, addLock, addModification, addRemovedNode, clearLocks, getDummyNodesCreatedByCacheLoader, getLocalModifications, getLocks, getModifications, getOption, getOrderedSynchronizationHandler, getRemovedNodes, getTransaction, hasAnyModifications, hasLocalModifications, hasLock, hasModifications, isForceAsyncReplication, isForceSyncReplication, removeLock, setForceAsyncReplication, setForceSyncReplication, setOption, setOrderedSynchronizationHandler, setTransaction, toString
public MVCCTransactionContext(Transaction tx) throws SystemException, RollbackException
SystemException
RollbackException
public NodeSPI lookUpNode(Fqn fqn)
InvocationContext.lookUpNode(org.jboss.cache.Fqn)
would delegate to this method if a transaction is in scope.
fqn
- fqn to look uppublic void putLookedUpNode(Fqn f, NodeSPI n)
InvocationContext.putLookedUpNode(org.jboss.cache.Fqn, org.jboss.cache.NodeSPI)
would delegate to this method if a transaction is in scope.
f
- fqn to addn
- node to addpublic void clearLookedUpNodes()
InvocationContext.clearLookedUpNodes()
would delegate to this method if a transaction is in scope.
public Map<Fqn,NodeSPI> getLookedUpNodes()
InvocationContext.getLookedUpNodes()
would delegate to this method if a transaction is in scope.
public void reset()
TransactionContext
reset
in interface TransactionContext
reset
in class AbstractTransactionContext
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.