| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicReferenceFieldUpdater | |
| private volatile MpscLinkedQueue. | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile MpscLinkedQueue. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public boolean | isEmpty()
Overrides java. Implements java. true if this collection contains no elements.
|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public final boolean | offer(final E
the element to add e)Implements java. |
| public E | peek()
Implements java. null if this queue is empty.
|
| public E | poll()
Implements java. null if this queue is empty.
|
| public boolean | remove(Object
element to be removed from this collection, if present o)Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| public boolean | Returns: indicate whether elements has been successfully offeredfirst element to offer e1, E second element to offer e2)Implements java. java. extension for
java. which allows atomically offer two elements at once.
|
| CONSUMER_NODE_UPDATER | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<MpscLinkedQueue<E>, MpscLinkedQueue. | |
| consumerNode | back to summary |
|---|---|
| private volatile MpscLinkedQueue. | |
| PRODUCER_NODE_UPDATER | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<MpscLinkedQueue<E>, MpscLinkedQueue. | |
| producerNode | back to summary |
|---|---|
| private volatile MpscLinkedQueue. | |
| MpscLinkedQueue | back to summary |
|---|---|
| public MpscLinkedQueue() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this queue. The queue will be empty after this call returns. This implementation repeatedly invokes
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee). | |
| offer | back to summary |
|---|---|
| public final boolean offer(final E e) Implements java. Doc from java. Inserts the specified element into this queue if it is possible to do
so immediately without violating capacity restrictions.
When using a capacity-restricted queue, this method is generally
preferable to
IMPLEMENTATION NOTES:
| |
| peek | back to summary |
|---|---|
| public E peek() Implements java. Doc from java. Retrieves, but does not remove, the head of this queue,
or returns | |
| poll | back to summary |
|---|---|
| public E poll() Implements java. Doc from java. Retrieves and removes the head of this queue,
or returns
IMPLEMENTATION NOTES:
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes a single instance of the specified element from this
collection, if it is present (optional operation). More formally,
removes an element | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| test | back to summary |
|---|---|
| public boolean test(E e1, E e2) Implements java. This is an additional
IMPLEMENTATION NOTES:
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile MpscLinkedQueue. | |
| private static final AtomicReferenceFieldUpdater | |
| private E |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public E | Returns: valueGets the current value and nulls out the reference to it from this node. |
| public E | |
| public MpscLinkedQueue. | |
| public void | |
| public void |
| next | back to summary |
|---|---|
| private volatile MpscLinkedQueue. | |
| NEXT_UPDATER | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<MpscLinkedQueue. | |
| value | back to summary |
|---|---|
| private E value | |
| LinkedQueueNode | back to summary |
|---|---|
| pack-priv LinkedQueueNode() | |
| LinkedQueueNode | back to summary |
|---|---|
| pack-priv LinkedQueueNode(E val) | |
| getAndNullValue | back to summary |
|---|---|
| public E getAndNullValue() Gets the current value and nulls out the reference to it from this node.
| |
| lpValue | back to summary |
|---|---|
public E lpValue()
| |
| lvNext | back to summary |
|---|---|
public MpscLinkedQueue.
| |
| soNext | back to summary |
|---|---|
| public void soNext(MpscLinkedQueue. | |
| spValue | back to summary |
|---|---|
| public void spValue(E newValue) | |