public class FairPriorityBlockingQueue<E> extends Object
Constructor and Description |
---|
FairPriorityBlockingQueue(Comparator<? super E> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
addAll(Collection<? extends E> c) |
boolean |
remove(Object o) |
int |
size() |
E |
take()
take is implemented by using poll and a fairnessLock to synchronize removal from head of queue with bulk addAll
operation.
|
public FairPriorityBlockingQueue(@NonNull Comparator<? super E> comparator)
public E take() throws InterruptedException
InterruptedException
public boolean remove(Object o)
public void addAll(Collection<? extends E> c)
public boolean add(E e)
public int size()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.