void enabled(boolean enabled) {
            lock.writeLock().lock();
            try {
                this.enabled = enabled;
            } finally {
                lock.writeLock().unlock();
            }
        }
Updates the {@link #intervalMs}, {@link #lastRequestMs} and {@link #enabled}.
<p>
The contents of the method are guarded by the {@link #lock}.
clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryReporter.java