Class ConcurrentThreadLocal<T>


  • public class ConcurrentThreadLocal<T>
    extends java.lang.Object
    A "thread local" variable that uses weak refs to track the thread to value mapping. This class is useful when ThreadLocal instances are inconvenient.

    Like All classes in this package, this class is not API stable.

    • Constructor Detail

      • ConcurrentThreadLocal

        public ConcurrentThreadLocal()
    • Method Detail

      • get

        public T get()
      • remove

        public void remove()
      • set

        public void set​(T value)
      • initialValue

        protected T initialValue()