All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.wenweihu86.raft.service.RaftClientServiceAsync Maven / Gradle / Ivy

The newest version!
package com.github.wenweihu86.raft.service;

import com.github.wenweihu86.raft.proto.RaftMessage;
import com.github.wenweihu86.rpc.client.RPCCallback;

import java.util.concurrent.Future;

/**
 * 用于生成client异步调用所需的proxy
 * Created by wenweihu86 on 2017/5/14.
 */
public interface RaftClientServiceAsync extends RaftClientService {

    Future getLeader(
            RaftMessage.GetLeaderRequest request,
            RPCCallback callback);

    Future getConfiguration(
            RaftMessage.GetConfigurationRequest request,
            RPCCallback callback);

    Future addPeers(
            RaftMessage.AddPeersRequest request,
            RPCCallback callback);

    Future removePeers(
            RaftMessage.RemovePeersRequest request,
            RPCCallback callback);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy