private void handlerNotLeaderError(final CounterClosure closure) {
        closure.failure("Not leader.", getRedirect());
        closure.run(new Status(RaftError.EPERM, "Not leader"));
    }
@author likun (saimu.msm@antfin.com)
jraft-example/src/main/java/com/alipay/sofa/jraft/example/counter/CounterServiceImpl.java