public void reset(final int timeoutMs) {
        this.lock.lock();
        this.timeoutMs = timeoutMs;
        try {
            if (this.stopped) {
                return;
            }
            if (this.running) {
                schedule();
            }
        } finally {
            this.lock.unlock();
        }
    }
Reset timer with new timeoutMs.

@param timeoutMs timeout millis
jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java