public static Timer deadlineTimer(final Time time, final long deadlineMs) {
        long diff = Math.max(0, deadlineMs - time.milliseconds());
        return time.timer(diff);
    }
{@code TimedRequestState} adds to a {@link RequestState} a {@link Timer} with which to keep track
of the request's expiration.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/TimedRequestState.java