| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | enqueue()
Overrides java. Clears this reference object, then attempts to add it to the queue with which it is registered, if any. |
| public T |
| FinalReference | back to summary |
|---|---|
| public FinalReference(T referent, ReferenceQueue<? super T> q) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Doc from java. Clears this reference object. Invoking this method does not enqueue this object, and the garbage collector will not clear or enqueue this object. When the garbage collector or the
| |
| enqueue | back to summary |
|---|---|
| public boolean enqueue() Overrides java. Doc from java. Clears this reference object, then attempts to add it to the queue with which it is registered, if any. If this reference is registered with a queue but not yet enqueued,
the reference is added to the queue; this method is
successful and returns true.
If this reference is not registered with a queue, or was already enqueued
(by the garbage collector, or a previous call to Memory consistency effects:
Actions in a thread prior to a successful call to When this method clears references it does so directly, without
invoking the
| |
| get | back to summary |
|---|---|
| public T get() Overrides java. Doc from java. Returns this reference object's referent. If this reference object has
been cleared, either by the program or by the garbage collector, then
this method returns
| |