void failHeartbeat() {
        update(time.milliseconds());
        heartbeatInFlight = false;
        heartbeatTimer.reset(retryBackoff.backoff(heartbeatAttempts++));

        log.trace("Heartbeat failed, reset the timer to {}ms remaining", heartbeatTimer.remainingMs());
    }
A helper class for managing the heartbeat to the coordinator
clients/src/main/java/org/apache/kafka/clients/consumer/internals/Heartbeat.java