public synchronized boolean isClosed() {
        return this.isClosed;
    }
Check if this metadata instance has been closed. See {@link #close()} for more information.

@return True if this instance has been closed; false otherwise
clients/src/main/java/org/apache/kafka/clients/Metadata.java