public static <T> boolean reinsertIfExists(EvictingPriorityBlockingQueue<T> queue, T e) {
    if (queue.remove(e)) {
      queue.forceOffer(e);
      return true;
    }
    return false;
  }
Test if we are able to set the WaitQueueSize dynamically.
@throws InterruptedException
llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestEvictingPriorityBlockingQueue.java