@Override
    public Message processRequest0(final RaftServerService service, final RequestVoteRequest request,
                                   final RpcRequestClosure done) {
        if (request.getPreVote()) {
            return service.handlePreVoteRequest(request);
        } else {
            return service.handleRequestVoteRequest(request);
        }
    }
Handle PreVote and RequestVote requests.

@author boyan (boyan@alibaba-inc.com)

2018-Apr-08 6:11:09 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/impl/core/RequestVoteRequestProcessor.java