Class WeakPool.Entry<B>
java.lang.Object
java.lang.ref.Reference<B>
java.lang.ref.WeakReference<B>
org.cojen.tupl.util.WeakPool.Entry<B>
An entry which weakly references a pooled object.
-
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Method Details
-
release
public void release()Release the entry such that it can be accessed again later. This method is thread-safe and doesn't need to be called from the thread that accessed the entry. -
discard
public void discard()Discard the entry from the pool instead of releasing it.
-