public interface BatchedBlockingQueue<T>
extends java.util.concurrent.BlockingQueue<T>
| Modifier and Type | Method and Description |
|---|---|
int |
pollAll(T[] array,
long timeout,
java.util.concurrent.TimeUnit unit)
Removes multiple items from the queue.
|
void |
putAll(T[] a,
int offset,
int len) |
int |
takeAll(T[] array)
Drain the queue into an array.
|
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, takevoid putAll(T[] a, int offset, int len) throws java.lang.InterruptedException
java.lang.InterruptedExceptionint takeAll(T[] array) throws java.lang.InterruptedException
array - java.lang.InterruptedExceptionint pollAll(T[] array, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
array - timeout - unit - java.lang.InterruptedExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.