1 @deftypemethod PhantomReference {public Object} get ()
2 Returns the object, this reference refers to.
4 @deftypemethod Reference {public Object} get ()
5 Returns the object, this reference refers to.
7 @deftypemethod Reference {public void} clear ()
8 Clears the reference, so that it doesn't refer to its object
9 anymore. For soft and weak references this is called by the
10 garbage collection. For phantom references you should call
11 this when enqueuing the reference.
13 @deftypemethod Reference {public boolean} isEnqueued ()
14 Tells if the object is enqueued on a reference queue.
16 @deftypemethod Reference {public boolean} enqueue ()
17 Enqueue an object on a reference queue. This is normally executed
18 by the garbage collection.
20 @deftypemethod ReferenceQueue {public synchronized Reference} poll ()
21 Checks if there is a reference on the queue, returning it
22 immediately. The reference will be dequeued.
24 @deftypemethod ReferenceQueue {public synchronized Reference} remove (long@w{ }@var{timeout}) @*throws InterruptedException
25 Removes a reference from the queue, blocking for @code{timeout}
26 until a reference is enqueued.
28 @deftypemethod ReferenceQueue {public Reference} remove () @*throws InterruptedException
29 Removes a reference from the queue, blocking until a reference is
32 @deftypemethod SoftReference {public Object} get ()
33 Returns the object, this reference refers to.