Module java.base
Package java.util.concurrent

# Class PriorityBlockingQueue

=
public class PriorityBlockingQueue<E>
extends java.util.AbstractQueue<E>
implements java.io.Serializable, java.util.concurrent.BlockingQueue<E>

## Constructors

- =
  public PriorityBlockingQueue()
- =
  public PriorityBlockingQueue(int arg0)
- =
  public PriorityBlockingQueue(int arg0, java.util.Comparator<? super E> arg1)
- =
  public PriorityBlockingQueue(java.util.Collection<? extends E> arg0)

## Methods

- =
  public boolean add(E arg0)
- =
  public void clear()
- =
  public java.util.Comparator<? super E> comparator()
- =
  public boolean contains(java.lang.Object arg0)
- =
  public int drainTo(java.util.Collection<? super E> arg0)
- =
  public int drainTo(java.util.Collection<? super E> arg0, int arg1)
- =
  public void forEach(java.util.function.Consumer<? super E> arg0)
- =
  public java.util.Iterator<E> iterator()
- =
  public boolean offer(E arg0)
- =
  public boolean offer(E arg0, long arg1, java.util.concurrent.TimeUnit arg2)
- =
  public E peek()
- =
  public E poll()
- =
  public E poll(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException
- =
  public void put(E arg0)
- =
  public int remainingCapacity()
- =
  public boolean remove(java.lang.Object arg0)
- =
  public boolean removeAll(java.util.Collection<?> arg0)
- =
  public boolean removeIf(java.util.function.Predicate<? super E> arg0)
- =
  public boolean retainAll(java.util.Collection<?> arg0)
- =
  public int size()
- =
  public java.util.Spliterator<E> spliterator()
- =
  public E take() throws java.lang.InterruptedException
- =
  public java.lang.Object[] toArray()
- =
  public <T> T[] toArray(T[] arg0)
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=5595510919245408276

### Serialized Fields

- =
  java.util.concurrent.locks.ReentrantLock lock
- =
  java.util.concurrent.locks.Condition notEmpty
- =
  java.util.PriorityQueue<E> q

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.