private long delayBeforeNextExpireMs(long now) {
        long timeSinceUpdate = now - lastMetadataUpdateMs;
        return Math.max(0, metadataExpireMs - timeSinceUpdate);
    }
Determine if the AdminClient should fetch new metadata.
clients/src/main/java/org/apache/kafka/clients/admin/internals/AdminMetadataManager.java