private void bubbleUp(int i) {
        while (i > 0) {
            final int parent = parent(i);
            if (isBetter(parent, i)) {
                break;
            }

            swap(parent, i);
            i = parent;
        }
    }
A binary heap of Entry. Ordered by:
<ul>
  <li>{@link AbstractEventLoopEntry#activeRequests()} (lower is better)</li>
  <li>{@link AbstractEventLoopEntry#id()} (lower is better)</li>
</ul>
core/src/main/java/com/linecorp/armeria/client/HeapBasedEventLoopState.java