Package io.deephaven.base.reference
Class DowngradableReference<T>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<T>
io.deephaven.base.reference.DowngradableReference<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
SimpleReference<T>
SimpleReference implementation that allows a downgrade from strongly reachable to weakly reachable.
- Note:
- This only applies (obviously) to this reference's relationship to the referent.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.ref.Reference
clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.base.reference.SimpleReference
get
-
Constructor Details
-
DowngradableReference
-
-
Method Details
-
clear
public void clear()Description copied from interface:SimpleReference
Clear the referent. -
downgrade
public void downgrade()Eliminate this object's hard reference to the referent. Converts the reachability enforced by this object from hard to weak.
-