Interface ThreadContext<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T capture()
      Captures the current context to be passed to push(Object) before a thread executes.
      void push​(T context)
      Pushes the context previously captured to the currently running thread.
      void reset​(T context)
      Resets the context on the current thread.
    • Method Detail

      • capture

        T capture()
        Captures the current context to be passed to push(Object) before a thread executes.
        Returns:
        the current context
      • push

        void push​(T context)
        Pushes the context previously captured to the currently running thread.
        Parameters:
        context - the captured context to push
      • reset

        void reset​(T context)
        Resets the context on the current thread.
        Parameters:
        context - the captured context to reset