Package org.infinispan.context
Interface InvocationContextContainer
-
@Deprecated public interface InvocationContextContainer
Deprecated.Since 9.0, this interface is going to be moved to an internal package.Manages the association between anInvocationContext
and the calling thread.- Author:
- Manik Surtani (manik AT infinispan DOT org), Mircea.Markus@jboss.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
clearThreadLocal()
Deprecated.Remove the stored InvocationContext from the calling thread.default void
clearThreadLocal(InvocationContext context)
Deprecated.InvocationContext
getInvocationContext(boolean quiet)
Deprecated.Returns theInvocationContext
that is currently associated with the calling thread.void
setThreadLocal(InvocationContext context)
Deprecated.Associate the InvocationContext parameter with the calling thread.
-
-
-
Method Detail
-
getInvocationContext
InvocationContext getInvocationContext(boolean quiet)
Deprecated.Returns theInvocationContext
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.- Parameters:
quiet
-- Throws:
java.lang.IllegalStateException
- if there is no context associated with the current thread.
-
setThreadLocal
void setThreadLocal(InvocationContext context)
Deprecated.Associate the InvocationContext parameter with the calling thread.
-
clearThreadLocal
void clearThreadLocal()
Deprecated.Remove the stored InvocationContext from the calling thread. Must be called as each thread exists the interceptor chain.
-
clearThreadLocal
default void clearThreadLocal(InvocationContext context)
Deprecated.
-
-