@Override
  public void close() {
    deque.forEach(NetworkRequest::release);
    deque.clear();
  }
@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