com.github.wenweihu86.raft.service.RaftClientServiceAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of raft-java-core Show documentation
Show all versions of raft-java-core Show documentation
another Raft implementation for Java
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