ReferenceBundle. References stored
in this queue will be removed when reference processing occurs.
This queue is backed by a ConcurrentLinkedQueue and is thread safe.
The iterator will only return non-null values (reachable) and is based on
the "weakly consistent" iterator of the underlying ConcurrentLinkedQueue.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ReferenceBundle | |
| private final ConcurrentLinkedQueue |
| Access | Constructor and Description |
|---|---|
| public | ManagedConcurrentLinkedQueue(ReferenceBundle
used to create the appropriate Reference type
for the values stored bundle)Creates an empty ManagedConcurrentLinkedQueue that will use the provided
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public Iterator | iterator()
Implements java. |
| public T[] | Returns: an array containing all non-null values in this queuethe array to populate if big enough, else a new array with
the same runtime type tArray)Returns an array containing all values from this queue in the sequence they were added. |
| public List |
| bundle | back to summary |
|---|---|
| private final ReferenceBundle bundle | |
| queue | back to summary |
|---|---|
| private final ConcurrentLinkedQueue<ManagedConcurrentLinkedQueue<T>. | |
| ManagedConcurrentLinkedQueue | back to summary |
|---|---|
| public ManagedConcurrentLinkedQueue(ReferenceBundle bundle) Creates an empty ManagedConcurrentLinkedQueue that will use the provided
| |
| add | back to summary |
|---|---|
| public void add(T value) Adds the specified value to the queue.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns This method does not check the elements to verify they contain non-null reference values. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator over all non-null values in this queue. The values should be returned in the order they were added.
| |
| toArray | back to summary |
|---|---|
| public T[] toArray(T[] tArray) Returns an array containing all values from this queue in the sequence they were added.
| |
| values | back to summary |
|---|---|
| public List Returns a list containing all values from this queue in the sequence they were added. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| Element | back to summary |
|---|---|
| pack-priv Element(V value) | |
| finalizeReference | back to summary |
|---|---|
| public void finalizeReference() Overrides org. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ManagedConcurrentLinkedQueue | |
| pack-priv boolean | |
| pack-priv T | |
| pack-priv final Iterator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| public T | |
| public void | remove()
Overrides default java. |
| current | back to summary |
|---|---|
| pack-priv ManagedConcurrentLinkedQueue<T>. | |
| exhausted | back to summary |
|---|---|
| pack-priv boolean exhausted | |
| value | back to summary |
|---|---|
| pack-priv T value | |
| wrapped | back to summary |
|---|---|
| pack-priv final Iterator<ManagedConcurrentLinkedQueue<T>. | |
| Itr | back to summary |
|---|---|
| pack-priv Itr(Iterator<ManagedConcurrentLinkedQueue<T>. | |
| advance | back to summary |
|---|---|
| private void advance() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |