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