|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.InvocationContext org.jboss.cache.invocation.MVCCInvocationContext
public class MVCCInvocationContext
An invocation context that is specific to MVCC locking
Field Summary |
---|
Fields inherited from class org.jboss.cache.InvocationContext |
---|
invocationLocks, transactionContext |
Constructor Summary | |
---|---|
MVCCInvocationContext()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MVCCInvocationContext()
Method Detail |
---|
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 up
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |