public abstract class AbstractInvocationContextContainer extends Object implements InvocationContextContainer
| Modifier and Type | Field and Description |
|---|---|
protected ThreadLocal<InvocationContext> |
ctxHolder |
UNBOUNDED| Constructor and Description |
|---|
AbstractInvocationContextContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearThreadLocal()
Must be called as each thread exists the interceptor chain.
|
InvocationContext |
createRemoteInvocationContextForCommand(VisitableCommand cacheCommand,
Address origin)
As
InvocationContextContainer.createRemoteInvocationContext(org.infinispan.remoting.transport.Address), but returning the flags to
the context from the Command if any Flag was set. |
InvocationContext |
getInvocationContext(boolean quiet)
Returns the
InvocationContext that is currently associated with the calling thread. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateInvocationContext, createInvocationContext, createNonTxInvocationContext, createRemoteInvocationContext, createRemoteTxInvocationContext, createSingleKeyNonTxInvocationContext, createTxInvocationContextprotected final ThreadLocal<InvocationContext> ctxHolder
public InvocationContext createRemoteInvocationContextForCommand(VisitableCommand cacheCommand, Address origin)
InvocationContextContainerInvocationContextContainer.createRemoteInvocationContext(org.infinispan.remoting.transport.Address), but returning the flags to
the context from the Command if any Flag was set.createRemoteInvocationContextForCommand in interface InvocationContextContainerorigin - the origin of the command, or null if localpublic InvocationContext getInvocationContext(boolean quiet)
InvocationContextContainerInvocationContext that is currently associated with the calling thread. Important:
implementations of this method are most likely expensive, involving thread locals. It is recommended to cache
the result of this method rather than repeating the call.getInvocationContext in interface InvocationContextContainerpublic void clearThreadLocal()
InvocationContextContainerclearThreadLocal in interface InvocationContextContainerCopyright © 2012 JBoss by Red Hat. All Rights Reserved.