| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements io. |
| public boolean | isEmpty()
Implements io. |
| pack-priv MpscLinkedQueue. | |
| pack-priv MpscLinkedQueue. | |
| pack-priv MpscLinkedQueue. | |
| public boolean | offer(final T
the value to enqueue, not null e)Implements io. |
| public boolean | offer(T
the first value to enqueue, not null v1, T the second value to enqueue, not null v2)Implements io. |
| public T | poll()
Implements io. |
| pack-priv void | |
| pack-priv MpscLinkedQueue. |
| consumerNode | back to summary |
|---|---|
| private final AtomicReference<MpscLinkedQueue. | |
| producerNode | back to summary |
|---|---|
| private final AtomicReference<MpscLinkedQueue. | |
| MpscLinkedQueue | back to summary |
|---|---|
| public MpscLinkedQueue() | |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Returns true if the queue is empty.
Note however that due to potential fused functions in Implementation Notes
| |
| lpConsumerNode | back to summary |
|---|---|
| pack-priv MpscLinkedQueue. | |
| lvConsumerNode | back to summary |
|---|---|
| pack-priv MpscLinkedQueue. | |
| lvProducerNode | back to summary |
|---|---|
| pack-priv MpscLinkedQueue. | |
| offer | back to summary |
|---|---|
| public boolean offer(final T e) Implements io. Doc from io. Atomically enqueue a single value.
IMPLEMENTATION NOTES:
| |
| offer | back to summary |
|---|---|
| public boolean offer(T v1, T v2) Implements io. Doc from io. Atomically enqueue two values.
| |
| poll | back to summary |
|---|---|
| public T poll() Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses
IMPLEMENTATION NOTES:
| |
| spConsumerNode | back to summary |
|---|---|
| pack-priv void spConsumerNode(MpscLinkedQueue. | |
| xchgProducerNode | back to summary |
|---|---|
| pack-priv MpscLinkedQueue. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| 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 |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| 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) | |