Interface ContextHolder

    • Method Summary

      Modifier and Type Method Description
      void captureThreadLocal​(int index, ThreadLocal<Object> threadLocal, Object value)
      Store a thread local and its current value while capturing, in a way that storage is flattend in the context wrapper with minimal allocation.
    • Method Detail

      • captureThreadLocal

        void captureThreadLocal​(int index,
                                ThreadLocal<Object> threadLocal,
                                Object value)
        Store a thread local and its current value while capturing, in a way that storage is flattend in the context wrapper with minimal allocation.
        Parameters:
        index - the context provider index
        threadLocal - the context provider's threadLocal
        value - the current or cleared value of the threadLocal (depending on ThreadContext settings)