1 *java.lang.ref.ReferenceQueue* *ReferenceQueue* Reference queues, to which regis
3 public class ReferenceQueue
4 extends |java.lang.Object|
6 |java.lang.ref.ReferenceQueue_Description|
7 |java.lang.ref.ReferenceQueue_Fields|
8 |java.lang.ref.ReferenceQueue_Constructors|
9 |java.lang.ref.ReferenceQueue_Methods|
11 ================================================================================
13 *java.lang.ref.ReferenceQueue_Constructors*
14 |java.lang.ref.ReferenceQueue()|Constructs a new reference-object queue.
16 *java.lang.ref.ReferenceQueue_Methods*
17 |java.lang.ref.ReferenceQueue.poll()|Polls this queue to see if a reference obj
18 |java.lang.ref.ReferenceQueue.remove()|Removes the next reference object in thi
19 |java.lang.ref.ReferenceQueue.remove(long)|Removes the next reference object in
21 *java.lang.ref.ReferenceQueue_Description*
23 Reference queues, to which registered reference objects are appended by the
24 garbage collector after the appropriate reachability changes are detected.
27 *java.lang.ref.ReferenceQueue()*
29 public ReferenceQueue()
31 Constructs a new reference-object queue.
34 *java.lang.ref.ReferenceQueue.poll()*
36 public |java.lang.ref.Reference| poll()
38 Polls this queue to see if a reference object is available. If one is available
39 without further delay then it is removed from the queue and returned. Otherwise
40 this method immediately returns null.
43 Returns: A reference object, if one was immediately available, otherwise null
44 *java.lang.ref.ReferenceQueue.remove()*
46 public |java.lang.ref.Reference| remove()
47 throws |java.lang.InterruptedException|
49 Removes the next reference object in this queue, blocking until one becomes
53 Returns: A reference object, blocking until one becomes available
54 *java.lang.ref.ReferenceQueue.remove(long)*
56 public |java.lang.ref.Reference| remove(long timeout)
57 throws |java.lang.IllegalArgumentException|
58 |java.lang.InterruptedException|
60 Removes the next reference object in this queue, blocking until either one
61 becomes available or the given timeout period expires.
63 This method does not offer real-time guarantees: It schedules the timeout as if
64 by invoking the (|java.lang.Object|) method.
66 timeout - If positive, block for up timeout milliseconds while waiting for a reference to
67 be added to this queue. If zero, block indefinitely.
69 Returns: A reference object, if one was available within the specified timeout period,