Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private final NativeReferenceQueue. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
pack-priv void | |
pack-priv void | |
pack-priv boolean | |
public Reference | poll()
Overrides java. Polls this queue to see if a reference object is available. |
public Reference | remove(long
If positive, block for up to timeout)timeout
milliseconds while waiting for a reference to be
added to this queue. If zero, block indefinitely.Overrides java. Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires. |
public Reference | remove()
Overrides java. Removes the next reference object in this queue, blocking until one becomes available. |
pack-priv void |
lock | back to summary |
---|---|
private final NativeReferenceQueue. |
NativeReferenceQueue | back to summary |
---|---|
public NativeReferenceQueue() |
await | back to summary |
---|---|
pack-priv void await() throws InterruptedException Overrides java.
|
await | back to summary |
---|---|
pack-priv void await(long timeoutMillis) throws InterruptedException Overrides java.
|
enqueue | back to summary |
---|---|
pack-priv boolean enqueue(Reference<? extends T> r) Overrides java.
|
poll | back to summary |
---|---|
public Reference Overrides java. Doc from java. Polls this queue to see if a reference object is available. If one is
available without further delay then it is removed from the queue and
returned. Otherwise this method immediately returns |
remove | back to summary |
---|---|
public Reference Overrides java. Doc from java. Removes the next reference object in this queue, blocking until either one becomes available or the given timeout period expires. This method does not offer real-time guarantees: It schedules the
timeout as if by invoking the
|
remove | back to summary |
---|---|
public Reference Overrides java. Doc from java. Removes the next reference object in this queue, blocking until one becomes available.
|
signal | back to summary |
---|---|
pack-priv void signal() Overrides java.
|
Access | Constructor and Description |
---|---|
private |
Lock | back to summary |
---|---|
private Lock() |