Additional top-level classes in compilation unit: SpmcArrayQueueL1Pad, SpmcArrayQueueProducerField, SpmcArrayQueueL2Pad, SpmcArrayQueueConsumerField, SpmcArrayQueueMidPad, SpmcArrayQueueProducerIndexCacheField, SpmcArrayQueueL3Pad.
| 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. |
| SpmcArrayQueue | back to summary |
|---|---|
| public SpmcArrayQueue(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
| |
| 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).
| |