Class SoftReference<T,​A>

  • Type Parameters:
    T - the reference value type
    A - the attachment type
    All Implemented Interfaces:
    Reference<T,​A>

    public class SoftReference<T,​A>
    extends SoftReference<T>
    implements Reference<T,​A>
    A reapable soft reference with an attachment. If a Reaper is given, then it will be used to asynchronously clean up the referent.
    Author:
    David M. Lloyd
    See Also:
    SoftReference
    • Constructor Detail

      • SoftReference

        public SoftReference​(T referent)
      • SoftReference

        public SoftReference​(T referent,
                             A attachment)
      • SoftReference

        public SoftReference​(T referent,
                             A attachment,
                             ReferenceQueue<? super T> q)
      • SoftReference

        public SoftReference​(T referent,
                             A attachment,
                             Reaper<T,​A> reaper)