public void resetDeadline(long deadlineMs) {
        if (deadlineMs < 0)
            throw new IllegalArgumentException("Invalid negative deadline " + deadlineMs);

        this.timeoutMs = Math.max(0, deadlineMs - this.currentTimeMs);
        this.startMs = this.currentTimeMs;
        this.deadlineMs = deadlineMs;
    }
Reset the timer's deadline directly.

@param deadlineMs The new deadline in milliseconds
s3stream/src/main/java/com/automq/stream/utils/Timer.java