public void addFirst(E e) {
    if (!offerFirst(e))
      throw new IllegalStateException("Deque full");
  }
@throws IllegalStateException {@inheritDoc}
@throws NullPointerException  {@inheritDoc}
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/PriorityBlockingDeque.java