use of org.apache.ratis.protocol.LeaderElectionManagementRequest in project incubator-ratis by apache.
the class GrpcAdminProtocolService method leaderElectionManagement.
@Override
public void leaderElectionManagement(LeaderElectionManagementRequestProto proto, StreamObserver<RaftClientReplyProto> responseObserver) {
final LeaderElectionManagementRequest request = ClientProtoUtils.toLeaderElectionManagementRequest(proto);
GrpcUtil.asyncCall(responseObserver, () -> protocol.leaderElectionManagementAsync(request), ClientProtoUtils::toRaftClientReplyProto);
}
Aggregations