public static class Queues.CircularQueue<E> extends Queues.SimpleQueue<E>
Queues.SimpleQueue.Node<E>, Queues.SimpleQueue.NodeSerializer<E>| Modifier and Type | Field and Description |
|---|---|
protected Atomic.Long |
headInsert |
protected java.util.concurrent.locks.Lock |
lock |
protected long |
size |
engine, head, locks, nodeSerializer, serializer, TICK, useLocks| Constructor and Description |
|---|
CircularQueue(Engine engine,
Serializer<E> serializer,
long headRecid,
long headInsertRecid,
long size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object o) |
void |
clear() |
E |
peek() |
E |
poll() |
addAll, close, contains, containsAll, drainTo, drainTo, element, isEmpty, iterator, offer, offer, poll, put, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final Atomic.Long headInsert
protected final java.util.concurrent.locks.Lock lock
protected final long size
public CircularQueue(Engine engine, Serializer<E> serializer, long headRecid, long headInsertRecid, long size)
public boolean add(java.lang.Object o)
public void clear()
clear in interface java.util.Collection<E>clear in class Queues.SimpleQueue<E>public E poll()
poll in interface java.util.Queue<E>poll in class Queues.SimpleQueue<E>public E peek()
peek in interface java.util.Queue<E>peek in class Queues.SimpleQueue<E>