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