public class MVCCInvocationContext extends InvocationContext
invocationLocks, transactionContext
Constructor and Description |
---|
MVCCInvocationContext() |
Modifier and Type | Method and Description |
---|---|
void |
clearLookedUpNodes()
Clears the registry of looked up nodes.
|
InvocationContext |
copy()
This is a "copy-factory-method" that should be used whenever a clone of this class is needed.
|
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)
Adds a map of looked up nodes to the current map of looked up nodes
|
void |
reset()
Resets the context, freeing up any references.
|
void |
setTransactionContext(TransactionContext transactionContext)
Sets the transaction context to be associated with the current thread.
|
addAllLocks, addFqnLoaded, addLock, clearLocks, doCopy, equals, getCommand, getFqnsLoaded, getGlobalTransaction, getLockAcquisitionTimeout, getLocks, getMethodCall, getOptionOverrides, getTransaction, getTransactionContext, hashCode, hasLock, isBypassUnmarshalling, isLocalRollbackOnly, isLockingSuppressed, isOptionsUninitialised, isOriginLocal, isValidTransaction, removeLock, setBypassUnmarshalling, setCommand, setFqnsLoaded, setGlobalTransaction, setLocalRollbackOnly, setMethodCall, setOptionOverrides, setOriginLocal, setState, setTransaction, throwIfNeeded, toString
public void setTransactionContext(TransactionContext transactionContext)
InvocationContext
setTransactionContext
in class InvocationContext
transactionContext
- transaction context to setpublic NodeSPI lookUpNode(Fqn fqn)
MVCCTransactionContext.lookUpNode(Fqn)
lookUpNode
in class InvocationContext
fqn
- fqn to look uppublic void putLookedUpNode(Fqn f, NodeSPI n)
MVCCTransactionContext.putLookedUpNode(Fqn, NodeSPI)
putLookedUpNode
in class InvocationContext
f
- fqn to addn
- node to addpublic void putLookedUpNodes(Map<Fqn,NodeSPI> lookedUpNodes)
InvocationContext
putLookedUpNodes
in class InvocationContext
lookedUpNodes
- looked up nodes to addpublic void clearLookedUpNodes()
MVCCTransactionContext.clearLookedUpNodes()
.clearLookedUpNodes
in class InvocationContext
public Map<Fqn,NodeSPI> getLookedUpNodes()
MVCCTransactionContext.getLookedUpNodes()
.
getLookedUpNodes
in class InvocationContext
public void reset()
InvocationContext
reset
in class InvocationContext
public InvocationContext copy()
InvocationContext
TransactionContext
, if any, is maintained.copy
in class InvocationContext
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.