protected T allDone() {
        state = State.DONE;
        return null;
    }
A base class that simplifies implementing an iterator
@param <T> The type of thing we are iterating over
clients/src/main/java/org/apache/kafka/common/utils/AbstractIterator.java