public Builder addReadinessFuture(
            String name,
            CompletableFuture<?> future
        ) {
            stages.add(new EndpointCompletionStage(name, future));
            return this;
        }
Add a readiness future that will block all endpoints.

@param name          The future name.
@param future        The future object.

@return              This builder object.
server-common/src/main/java/org/apache/kafka/server/network/EndpointReadyFutures.java