private void swap(int i, int j) {
        final AbstractEventLoopEntry entryI = entries[i];
        final AbstractEventLoopEntry entryJ = entries[j];
        entries[i] = entryJ;
        entries[j] = entryI;

        // Swap the index as well.
        entryJ.setIndex(i);
        entryI.setIndex(j);
    }
Returns {@code true} if the entry at {@code a} is a better choice than the entry at {@code b}.
core/src/main/java/com/linecorp/armeria/client/HeapBasedEventLoopState.java