Class RecordQueue<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.ArrayDeque<T>
io.smallrye.reactive.messaging.kafka.impl.RecordQueue<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,Deque<T>,Queue<T>
Stores the records coming from Kafka.
Only a few operations are supported:
offer(Object), addAll(Iterable), clear(),
size() and poll().
The access is guarded by the monitor lock.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayDeque
addFirst, addLast, clone, contains, descendingIterator, element, forEach, getFirst, getLast, isEmpty, iterator, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, remove, removeAll, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, retainAll, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
Constructor Details
-
RecordQueue
public RecordQueue(int capacityHint)
-
-
Method Details
-
addAll
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceDeque<T>- Overrides:
addAllin classArrayDeque<T>
-
addAll
-
add
-
offer
-
poll
-
peek
-
remove
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceDeque<T>- Overrides:
removein classArrayDeque<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceDeque<T>- Overrides:
sizein classArrayDeque<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Overrides:
clearin classArrayDeque<T>
-