protected void failure(final String errorMsg, final String redirect) {
        final ValueResponse response = ValueResponse.newBuilder().setSuccess(false).setErrorMsg(errorMsg)
            .setRedirect(redirect).build();
        setValueResponse(response);
    }
@author likun (saimu.msm@antfin.com)
jraft-example/src/main/java/com/alipay/sofa/jraft/example/counter/CounterClosure.java