@Override
  public int size() {
    return deque.size();
  }
@return the head of the queue if operating in LIFO mode. Else, returns the tail of the queue.
ambry-network/src/main/java/com/github/ambry/network/AdaptiveLifoCoDelNetworkRequestQueue.java