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