public class PriorityBlockingQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>, Serializable
构造器和说明 |
---|
PriorityBlockingQueue() |
PriorityBlockingQueue(Collection<? extends E> c) |
PriorityBlockingQueue(int capacity) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
boolean |
contains(Object o) |
int |
drainTo(Collection<? super E> c) |
int |
drainTo(Collection<? super E> c,
int maxElements) |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
boolean |
remove(Object o) |
int |
size() |
E |
take() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
add, addAll, element, remove
containsAll, isEmpty, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream
public PriorityBlockingQueue()
public PriorityBlockingQueue(int capacity)
public PriorityBlockingQueue(Collection<? extends E> c)
public int size()
size
在接口中 Collection<E>
size
在类中 AbstractCollection<E>
public int remainingCapacity()
remainingCapacity
在接口中 BlockingQueue<E>
public void put(E e) throws InterruptedException
put
在接口中 BlockingQueue<E>
InterruptedException
public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer
在接口中 BlockingQueue<E>
InterruptedException
public E take() throws InterruptedException
take
在接口中 BlockingQueue<E>
InterruptedException
public E poll(long timeout, TimeUnit unit) throws InterruptedException
poll
在接口中 BlockingQueue<E>
InterruptedException
public boolean remove(Object o)
remove
在接口中 Collection<E>
remove
在接口中 BlockingQueue<E>
remove
在类中 AbstractCollection<E>
public boolean contains(Object o)
contains
在接口中 Collection<E>
contains
在接口中 BlockingQueue<E>
contains
在类中 AbstractCollection<E>
public Object[] toArray()
toArray
在接口中 Collection<E>
toArray
在类中 AbstractCollection<E>
public <T> T[] toArray(T[] a)
toArray
在接口中 Collection<E>
toArray
在类中 AbstractCollection<E>
public void clear()
clear
在接口中 Collection<E>
clear
在类中 AbstractQueue<E>
public int drainTo(Collection<? super E> c)
drainTo
在接口中 BlockingQueue<E>
public int drainTo(Collection<? super E> c, int maxElements)
drainTo
在接口中 BlockingQueue<E>