public class SingleConsumerLinkedArrayLongQueue extends SingleConsumerLinkedArrayPrimitiveQueue<E> implements BasicSingleConsumerLongQueue
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
| Constructor and Description |
|---|
SingleConsumerLinkedArrayLongQueue() |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
boolean |
enq(long element) |
boolean |
enq(java.lang.Long element) |
boolean |
isEmpty() |
LongQueueIterator |
iterator() |
int |
nodeCount() |
E |
peek() |
E |
poll() |
long |
pollLong() |
int |
size() |
java.util.List<E> |
snapshot() |
add, clear, element, hasNext, offer, remove, removeAll, retainAll, toStringaddAll, contains, containsAll, remove, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasNextcapacity, isEmpty, poll, sizepublic static final int BLOCK_SIZE
public boolean enq(long element)
enq in interface BasicSingleConsumerLongQueuepublic boolean enq(java.lang.Long element)
enq in interface BasicQueue<java.lang.Long>enq in class SingleConsumerQueue<java.lang.Long>public long pollLong()
pollLong in interface BasicSingleConsumerLongQueuepublic LongQueueIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Long>iterator in interface java.util.Collection<java.lang.Long>public int capacity()
capacity in interface BasicQueue<E>capacity in class SingleConsumerQueue<E>public E peek()
peek in interface java.util.Queue<E>peek in class SingleConsumerQueue<E>public E poll()
poll in interface BasicQueue<E>poll in interface java.util.Queue<E>poll in class SingleConsumerQueue<E>public boolean isEmpty()
isEmpty in interface BasicQueue<E>isEmpty in interface java.util.Collection<E>isEmpty in class SingleConsumerQueue<E>public int size()
size in interface BasicQueue<E>size in interface java.util.Collection<E>size in class SingleConsumerQueue<E>public java.util.List<E> snapshot()
snapshot in class SingleConsumerQueue<E>public int nodeCount()