fixed some formatting typos
[vimdoclet.git] / sample / java.lang.ref.ReferenceQueue.txt
blob49c031e1899d87ce72bf8715b6ecd03cc408c1f8
1 *java.lang.ref.ReferenceQueue* *ReferenceQueue* Reference queues, to which regis
3 public class ReferenceQueue<T>
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. 
28 *java.lang.ref.ReferenceQueue()*
30 public ReferenceQueue()
32 Constructs a new reference-object queue. 
35 *java.lang.ref.ReferenceQueue.poll()*
37 public |java.lang.ref.Reference|<? extends T> poll()
39 Polls this queue to see if a reference object is available. If one is available 
40 without further delay then it is removed from the queue and returned. Otherwise 
41 this method immediately returns null. 
45     Returns: A reference object, if one was immediately available, otherwise null 
47 *java.lang.ref.ReferenceQueue.remove()*
49 public |java.lang.ref.Reference|<? extends T> remove()
50   throws |java.lang.InterruptedException|
51          
52 Removes the next reference object in this queue, blocking until one becomes 
53 available. 
57     Returns: A reference object, blocking until one becomes available 
59 *java.lang.ref.ReferenceQueue.remove(long)*
61 public |java.lang.ref.Reference|<? extends T> remove(long timeout)
62   throws |java.lang.IllegalArgumentException|
63          |java.lang.InterruptedException|
64          
65 Removes the next reference object in this queue, blocking until either one 
66 becomes available or the given timeout period expires. 
68 This method does not offer real-time guarantees: It schedules the timeout as if 
69 by invoking the (|java.lang.Object|) method. 
72     timeout - If positive, block for up to timeout milliseconds while waiting for a reference 
73        to be added to this queue. If zero, block indefinitely. 
75     Returns: A reference object, if one was available within the specified timeout period, 
76              otherwise null