public synchronized void cancelExpirationTimerTask() {
        if (expirationTimerTask != null) {
            expirationTimerTask.cancel();
            expirationTimerTask = null;
        }
    }
Contains the metrics instance metadata and the state of the client instance.
server/src/main/java/org/apache/kafka/server/metrics/ClientMetricsInstance.java