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

com.github.wenweihu86.raft.service.RaftConsensusServiceAsync 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/2.
 */
public interface RaftConsensusServiceAsync extends RaftConsensusService {

    Future preVote(
            RaftMessage.VoteRequest request,
            RPCCallback callback);

    Future requestVote(
            RaftMessage.VoteRequest request,
            RPCCallback callback);

    Future appendEntries(
            RaftMessage.AppendEntriesRequest request,
            RPCCallback callback);

    Future installSnapshot(
            RaftMessage.InstallSnapshotRequest request,
            RPCCallback callback);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy