public void setExpect(long expect) {
        this.expect = expect;
    }
compareAndSet(key, expect, newVal)
@author boyan (boyan@alibaba-inc.com)

2018-Apr-25 1:25:48 PM
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/command/CompareAndSetCommand.java