private void moveToNextAddress() {
            if (addresses.isEmpty())
                return; // Avoid div0. List will initialize on next currentAddress() call

            addressIndex = (addressIndex + 1) % addresses.size();
            if (addressIndex == 0)
                clearAddresses(); // Exhausted list. Re-resolve on next currentAddress() call
        }
Jumps to the next available resolved address for this node. If no other addresses are available, marks the
list to be refreshed on the next {@link #currentAddress()} call.
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java