@Override
    public synchronized void close() {
        this.isClosed = true;
    }
Close this metadata instance to indicate that metadata updates are no longer possible.
clients/src/main/java/org/apache/kafka/clients/Metadata.java