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 an InvocationContext and the calling thread.
    Author:
    Manik Surtani (manik AT infinispan DOT org), Mircea.Markus@jboss.com
    • Method Detail

      • getInvocationContext

        InvocationContext getInvocationContext​(boolean quiet)
        Deprecated.
        Returns the InvocationContext 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:
        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.