public static RpcServer createRaftRpcServer(final Endpoint endpoint, final Executor raftExecutor,
                                                final Executor cliExecutor, final Executor pingExecutor) {
        final RpcServer rpcServer = RpcFactoryHelper.rpcFactory().createRpcServer(endpoint);
        addRaftRequestProcessors(rpcServer, raftExecutor, cliExecutor, pingExecutor);
        return rpcServer;
    }
Creates a raft RPC server with executors to handle requests.

@param endpoint      server address to bind
@param raftExecutor  executor to handle RAFT requests.
@param cliExecutor   executor to handle CLI service requests.
@param pingExecutor  executor to handle ping requests.
@return a rpc server instance
jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/RaftRpcServerFactory.java