/** * <pre> * A client-to-server streaming RPC. * Accepts a stream of Points on a route being traversed, returning a * RouteSummary when traversal is completed. * </pre> */ public void recordRoute(io.vertx.core.Handler< io.vertx.grpc.GrpcUniExchange<io.grpc.examples.routeguide.Point, io.grpc.examples.routeguide.RouteSummary>> handler) { final io.vertx.grpc.GrpcReadStream<io.grpc.examples.routeguide.RouteSummary> readStream = io.vertx.grpc.GrpcReadStream.<io.grpc.examples.routeguide.RouteSummary>create(); handler.handle(io.vertx.grpc.GrpcUniExchange.create(readStream, asyncClientStreamingCall( getChannel().newCall(getRecordRouteMethod(), getCallOptions()), readStream.readObserver()))); }
/** * <pre> * A sequence of requests followed by one response (streamed upload). * The server returns the aggregated size of client payload as the result. * </pre> */ public void streamingInputCall(io.vertx.core.Handler< io.vertx.grpc.GrpcUniExchange<io.vertx.example.grpc.Messages.StreamingInputCallRequest, io.vertx.example.grpc.Messages.StreamingInputCallResponse>> handler) { final io.vertx.grpc.GrpcReadStream<io.vertx.example.grpc.Messages.StreamingInputCallResponse> readStream = io.vertx.grpc.GrpcReadStream.<io.vertx.example.grpc.Messages.StreamingInputCallResponse>create(); handler.handle(io.vertx.grpc.GrpcUniExchange.create(readStream, asyncClientStreamingCall( getChannel().newCall(getStreamingInputCallMethod(), getCallOptions()), readStream.readObserver()))); } }
/** */ public void sink(io.vertx.core.Handler< io.vertx.grpc.GrpcUniExchange<io.grpc.examples.streaming.Item, io.grpc.examples.streaming.Empty>> handler) { final io.vertx.grpc.GrpcReadStream<io.grpc.examples.streaming.Empty> readStream = io.vertx.grpc.GrpcReadStream.<io.grpc.examples.streaming.Empty>create(); handler.handle(io.vertx.grpc.GrpcUniExchange.create(readStream, asyncClientStreamingCall( getChannel().newCall(getSinkMethod(), getCallOptions()), readStream.readObserver()))); }
/** * <pre> * A sequence of requests followed by one response (streamed upload). * The server returns the aggregated size of client payload as the result. * </pre> */ public void streamingInputCall(io.vertx.core.Handler< io.vertx.grpc.GrpcUniExchange<io.grpc.testing.integration.Messages.StreamingInputCallRequest, io.grpc.testing.integration.Messages.StreamingInputCallResponse>> handler) { final io.vertx.grpc.GrpcReadStream<io.grpc.testing.integration.Messages.StreamingInputCallResponse> readStream = io.vertx.grpc.GrpcReadStream.<io.grpc.testing.integration.Messages.StreamingInputCallResponse>create(); handler.handle(io.vertx.grpc.GrpcUniExchange.create(readStream, asyncClientStreamingCall( getChannel().newCall(getStreamingInputCallMethod(), getCallOptions()), readStream.readObserver()))); }