private PeerId getPeer(String key) throws InterruptedException, TimeoutException {
        final String groupId = getGroupId(key);
        this.refreshConf(groupId);
        final List<PeerId> peers = RouteTable.getInstance().getConfiguration(groupId).getPeers();
        return peers.get(ThreadLocalRandom.current().nextInt(peers.size()));
    }
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