use of io.seldon.apife.exception.SeldonAPIException in project seldon-core by SeldonIO.
the class SeldonService method sendFeedback.
@Override
public void sendFeedback(io.seldon.protos.PredictionProtos.Feedback request, io.grpc.stub.StreamObserver<io.seldon.protos.PredictionProtos.SeldonMessage> responseObserver) {
try {
ManagedChannel channel = server.getChannel();
final SeldonGrpc.SeldonBlockingStub blockingStub = SeldonGrpc.newBlockingStub(channel);
responseObserver.onNext(blockingStub.sendFeedback(request));
} catch (SeldonAPIException e) {
responseObserver.onError(e);
}
responseObserver.onCompleted();
}
Aggregations