private PeerId getLeaderByKey(String key) throws InterruptedException, TimeoutException {
        return getLeader(getGroupId(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