Uses of Class java.lang.ref.Reference

Uses in package java.lang.ref

Classes derived from java.lang.ref.Reference

class
A phantom reference is useful, to get notified, when an object got finalized.
class
A soft reference will be cleared, if the object is only softly reachable and the garbage collection needs more memory.
class
A weak reference will be cleared, if the object is only weakly reachable.

Methods with return type java.lang.ref.Reference

Reference
Checks if there is a reference on the queue, returning it immediately.
Reference
Removes a reference from the queue, blocking until a reference is enqueued.
Reference
ReferenceQueue.remove(long timeout)
Removes a reference from the queue, blocking for timeout until a reference is enqueued.