public Future<Void> readToEnd() {
        FutureCallback<Void> future = new FutureCallback<>(null);
        readToEnd(future);
        return future;
    }
Same as {@link #readToEnd(Callback)} but provides a {@link Future} instead of using a callback.
@return the future associated with the operation
connect/runtime/src/main/java/org/apache/kafka/connect/util/KafkaBasedLog.java