com.github.wenweihu86.raft.service.RaftConsensusServiceAsync 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/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