E
- the type of elements held in this collectionpublic class StrategicBlockingQueue<E> extends WrappedBlockingQueue<E>
Constructor and Description |
---|
StrategicBlockingQueue(java.util.concurrent.BlockingQueue<E> blockingQueue,
QueueingStrategy<E> queueingStrategy) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
E |
poll() |
E |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
put(E e) |
E |
take() |
addAll, clear, contains, containsAll, drainTo, drainTo, element, isEmpty, iterator, offer, offer, peek, remainingCapacity, remove, remove, removeAll, retainAll, size, toArray, toArray
public StrategicBlockingQueue(java.util.concurrent.BlockingQueue<E> blockingQueue, QueueingStrategy<E> queueingStrategy)
public void put(E e) throws java.lang.InterruptedException
put
in interface java.util.concurrent.BlockingQueue<E>
put
in class WrappedBlockingQueue<E>
java.lang.InterruptedException
public boolean add(E e)
public E take() throws java.lang.InterruptedException
take
in interface java.util.concurrent.BlockingQueue<E>
take
in class WrappedBlockingQueue<E>
java.lang.InterruptedException
public E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll
in interface java.util.concurrent.BlockingQueue<E>
poll
in class WrappedBlockingQueue<E>
java.lang.InterruptedException
public E poll()
poll
in interface java.util.Queue<E>
poll
in class WrappedBlockingQueue<E>