Package io.streamnative.oxia.client.util
Interface BatchedBlockingQueue<T>
- All Superinterfaces:
BlockingQueue<T>,Collection<T>,Iterable<T>,Queue<T>
- All Known Implementing Classes:
BatchedArrayBlockingQueue
-
Method Summary
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, takeMethods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
putAll
- Throws:
InterruptedException
-
takeAll
Drain the queue into an array. Wait if there are no items in the queue.- Parameters:
array-- Returns:
- Throws:
InterruptedException
-
pollAll
Removes multiple items from the queue.The method returns when either: 1. At least one item is available 2. The timeout expires
- Parameters:
array-timeout-unit-- Returns:
- Throws:
InterruptedException
-