Class SoftThreadLocal<T>

  • Type Parameters:
    T - The referent to track.

    public abstract class SoftThreadLocal<T>
    extends java.lang.Object
    Soft reference to a java.lang.ThreadLocal.
    • Constructor Summary

      Constructors 
      Constructor Description
      SoftThreadLocal()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract T create()  
      T get()  
      void set​(T item)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoftThreadLocal

        public SoftThreadLocal()
    • Method Detail

      • get

        public T get()
      • set

        public void set​(T item)
      • create

        protected abstract T create()