Additional top-level classes in compilation unit: MpmcArrayQueueL1Pad, MpmcArrayQueueProducerField, MpmcArrayQueueL2Pad, MpmcArrayQueueConsumerField.
java.util.Queue
ConcurrentCircularArrayQueue. This implies that
any and all threads may call the offer/poll/peek methods and correctness is maintained. | Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isEmpty()
Overrides java. Implements rx. |
| public boolean | offer(final E
the Object to enqueue, not null e)Implements rx. Queue#offer(Object) interface.
|
| public E | peek()
Implements rx. Queue#peek() interface.
|
| public E | poll()
Implements rx. Queue#poll() interface.
|
| public int | size()
Implements abstract java. Implements rx. |
| p30 | back to summary |
|---|---|
| pack-priv long p30 | |
| p31 | back to summary |
|---|---|
| pack-priv long p31 | |
| p32 | back to summary |
|---|---|
| pack-priv long p32 | |
| p33 | back to summary |
|---|---|
| pack-priv long p33 | |
| p34 | back to summary |
|---|---|
| pack-priv long p34 | |
| p35 | back to summary |
|---|---|
| pack-priv long p35 | |
| p36 | back to summary |
|---|---|
| pack-priv long p36 | |
| p37 | back to summary |
|---|---|
| pack-priv long p37 | |
| p40 | back to summary |
|---|---|
| pack-priv long p40 | |
| p41 | back to summary |
|---|---|
| pack-priv long p41 | |
| p42 | back to summary |
|---|---|
| pack-priv long p42 | |
| p43 | back to summary |
|---|---|
| pack-priv long p43 | |
| p44 | back to summary |
|---|---|
| pack-priv long p44 | |
| p45 | back to summary |
|---|---|
| pack-priv long p45 | |
| p46 | back to summary |
|---|---|
| pack-priv long p46 | |
| MpmcArrayQueue | back to summary |
|---|---|
| public MpmcArrayQueue(final int capacity) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements rx. Doc from rx. This method's accuracy is subject to concurrent modifications happening as the observation is carried out.
| |
| offer | back to summary |
|---|---|
| public boolean offer(final E e) Implements rx. Doc from rx. Called from a producer thread subject to the restrictions appropriate to the implementation and according to the
| |
| peek | back to summary |
|---|---|
| public E peek() Implements rx. Doc from rx. Called from the consumer thread subject to the restrictions appropriate to the implementation and according to
the
| |
| poll | back to summary |
|---|---|
| public E poll() Implements rx. Doc from rx. Called from the consumer thread subject to the restrictions appropriate to the implementation and according to
the Because return null indicates queue is empty we cannot simply rely on next element visibility for poll and must test producer index when next element is not visible.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements rx. Doc from rx. This method's accuracy is subject to concurrent modifications happening as the size is estimated and as such is a best effort rather than absolute value. For some implementations this method may be O(n) rather than O(1).
| |