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 anInvocationContextand 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 voidclearThreadLocal()Deprecated.Remove the stored InvocationContext from the calling thread.default voidclearThreadLocal(InvocationContext context)Deprecated.InvocationContextgetInvocationContext(boolean quiet)Deprecated.Returns theInvocationContextthat is currently associated with the calling thread.voidsetThreadLocal(InvocationContext context)Deprecated.Associate the InvocationContext parameter with the calling thread.
-
-
-
Method Detail
-
getInvocationContext
InvocationContext getInvocationContext(boolean quiet)
Deprecated.Returns theInvocationContextthat 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:
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.
-
-