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 Lock |
lock |
protected long |
size |
engine, head, nodeSerializer, serializer, TICK| Constructor and Description |
|---|
Queues.CircularQueue(Engine engine,
Serializer<E> serializer,
long headRecid,
long headInsertRecid,
long size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o) |
void |
clear() |
boolean |
isEmpty() |
E |
peek() |
E |
poll() |
addAll, close, contains, containsAll, drainTo, drainTo, element, iterator, offer, offer, poll, put, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprotected final Atomic.Long headInsert
protected final Lock lock
protected final long size
public Queues.CircularQueue(Engine engine, Serializer<E> serializer, long headRecid, long headInsertRecid, long size)
public boolean add(Object o)
public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in class Queues.SimpleQueue<E>public void clear()
clear in interface Collection<E>clear in class Queues.SimpleQueue<E>public E poll()
Copyright © 2015. All Rights Reserved.