public class RecordQueue<T> extends ArrayDeque<T>
addAll(Iterable)
, clear()
, size()
and poll()
.
The access is guarded by the monitor lock.
Ths initial capacity is 2 * batch size.
Constructor and Description |
---|
RecordQueue(int capacityHint) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T item) |
boolean |
addAll(Collection<? extends T> c) |
void |
addAll(Iterable<T> iterable) |
void |
clear() |
boolean |
offer(T item) |
T |
peek() |
T |
poll() |
boolean |
remove(Object o) |
int |
size() |
addFirst, addLast, clone, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, spliterator, toArray, toArray
containsAll, removeAll, retainAll, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in class AbstractCollection<T>
public boolean add(T item)
public boolean offer(T item)
public T poll()
public T peek()
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface Deque<T>
remove
in class ArrayDeque<T>
public int size()
size
in interface Collection<T>
size
in interface Deque<T>
size
in class ArrayDeque<T>
public void clear()
clear
in interface Collection<T>
clear
in class ArrayDeque<T>
Copyright © 2018–2021 SmallRye. All rights reserved.