public long get(String key, boolean readFromQuorum) throws KeyNotFoundException, InterruptedException,
                                                       TimeoutException {
        if (readFromQuorum) {
            return get(getPeer(key), key, true, false);
        } else {
            //read from leader
            return get(key);
        }
    }
A counter client
@author boyan (boyan@alibaba-inc.com)

2018-Apr-25 4:08:14 PM
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/client/AtomicClient.java