private int getAndIncrementRequiredNextSeq() {
        final int prev = this.requiredNextSeq;
        this.requiredNextSeq++;
        if (this.requiredNextSeq < 0) {
            this.requiredNextSeq = 0;
        }
        return prev;
    }
Replicator for replicating log entry from leader to followers.
@author boyan (boyan@alibaba-inc.com)

2018-Apr-04 10:32:02 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java