Req
- Type of request.Resp
- Type of response.protected static interface GrpcRoutes.BlockingStreamingRoute<Req,Resp> extends GracefulAutoCloseable
Modifier and Type | Method and Description |
---|---|
default void |
close() |
void |
handle(GrpcServiceContext ctx,
BlockingIterable<Req> request,
GrpcPayloadWriter<Resp> responseWriter)
Handles the passed
Req . |
closeGracefully
void handle(GrpcServiceContext ctx, BlockingIterable<Req> request, GrpcPayloadWriter<Resp> responseWriter) throws java.lang.Exception
Req
.ctx
- GrpcServiceContext
for this call.request
- BlockingIterable
of Req
to handle.responseWriter
- GrpcPayloadWriter
to write the response.java.lang.Exception
- If an exception occurs during request processing.default void close()
close
in interface java.lang.AutoCloseable