public class MpmcArrayQueue<E> extends ConcurrentSequencedCircularArrayQueue<E> implements java.util.Queue<E>
sequenceBufferbuffer, BUFFER_PAD, capacity, mask, SPARSE_SHIFT| Constructor and Description |
|---|
MpmcArrayQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
casHead(long expect,
long newValue) |
protected boolean |
casTail(long expect,
long newValue) |
protected long |
lvHead() |
protected long |
lvTail() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
calcSequenceOffset, lpSequenceElement, lpSequenceElement, lvSequenceElement, lvSequenceElement, soSequenceElement, soSequenceElement, spSequenceElement, spSequenceElement, svSequenceElement, svSequenceElementcalcOffset, 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>protected final long lvHead()
protected final boolean casHead(long expect,
long newValue)
protected final long lvTail()
protected final boolean casTail(long expect,
long newValue)