public final class SpscArrayQueue<E> extends ConcurrentCircularArrayQueue<E> implements java.util.Queue<E>
| Modifier and Type | Field and Description |
|---|---|
protected long |
batchTail |
protected long |
head |
protected long |
tail |
buffer, BUFFER_PAD, capacity, mask, SPARSE_SHIFT| Constructor and Description |
|---|
SpscArrayQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
calcOffset, iterator, lpElement, lpElement, lvElement, lvElement, soElement, soElement, spElement, spElement, svElement, svElementcontains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic boolean offer(E e)
offer in interface java.util.Queue<E>offer in class ConcurrentCircularArrayQueue<E>public E poll()
poll in interface java.util.Queue<E>poll in class ConcurrentCircularArrayQueue<E>public E peek()
peek in interface java.util.Queue<E>peek in class ConcurrentCircularArrayQueue<E>public int size()
size in interface java.util.Collection<E>size in class ConcurrentCircularArrayQueue<E>