java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
PhantomReference objects are used to detect referents which
are no longer visible and are eligible to have their storage
reclaimed.
- Since:
- JDK1.2
-
Constructor Summary
ConstructorsConstructorDescriptionPhantomReference
(T r, ReferenceQueue<? super T> q) Constructs a new instance of this class. -
Method Summary
Methods declared in class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Constructor Details
-
PhantomReference
Constructs a new instance of this class.- Parameters:
r
- referent to track.q
- queue to register to the reference object with.
-
-
Method Details