Req
- Type of request.Resp
- Type of response.protected static interface GrpcRoutes.StreamingRoute<Req,Resp> extends AsyncCloseable
Modifier and Type | Method and Description |
---|---|
default Completable |
closeAsync()
Used to close/shutdown a resource.
|
Publisher<Resp> |
handle(GrpcServiceContext ctx,
Publisher<Req> request)
Handles the passed
Req . |
closeAsyncGracefully
Publisher<Resp> handle(GrpcServiceContext ctx, Publisher<Req> request)
Req
.ctx
- GrpcServiceContext
for this call.request
- Publisher
of Req
to handle.Single
containing the response.default Completable closeAsync()
AsyncCloseable
closeAsync
in interface AsyncCloseable
CompletableSource
that is notified once the close is complete.