boolean callHasExpired(Call call) {
            int remainingMs = calcTimeoutMsRemainingAsInt(now, call.deadlineMs);
            if (remainingMs < 0)
                return true;
            nextTimeoutMs = Math.min(nextTimeoutMs, remainingMs);
            return false;
        }
Check whether a call should be timed out.
The remaining milliseconds until the next timeout will be updated.

@param call      The call.

@return          True if the call should be timed out.
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java