public class BatchArrayQueue<T>
extends org.eclipse.jetty.util.ArrayQueue<T>
_elements, _growCapacity, _lock, _nextE, _nextSlot, _size, DEFAULT_CAPACITY, DEFAULT_GROWTHmodCount| Constructor and Description |
|---|
BatchArrayQueue(int initial,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
void |
addUnsafe(T t) |
void |
clear() |
void |
clearToBatch(long batch) |
void |
exportMessagesToBatch(Queue<T> target,
long batch) |
long |
getBatch() |
protected boolean |
grow() |
void |
nextBatch() |
boolean |
offer(T t) |
T |
poll() |
T |
remove() |
T |
remove(int index) |
T |
set(int index,
T element) |
element, get, getCapacity, getUnsafe, isEmpty, peek, sizeaddAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic BatchArrayQueue(int initial,
Object lock)
public boolean offer(T t)
public boolean add(T t)
public void addUnsafe(T t)
addUnsafe in class org.eclipse.jetty.util.ArrayQueue<T>public void add(int index,
T element)
public T poll()
public T remove()
public void clear()
public T remove(int index)
public long getBatch()
public void nextBatch()
public void clearToBatch(long batch)
protected boolean grow()
grow in class org.eclipse.jetty.util.ArrayQueue<T>Copyright © 2008–2014 Dojo Foundation. All rights reserved.