Req - Type of request.Resp - Type of response.@FunctionalInterface
protected static interface GrpcRoutes.ResponseStreamingRoute<Req,Resp>
extends AsyncCloseable
| Modifier and Type | Method and Description |
|---|---|
default Completable |
closeAsync() |
Publisher<Resp> |
handle(GrpcServiceContext ctx,
Req request)
Handles the passed
Req. |
static <Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> |
wrap(GrpcRoutes.ResponseStreamingRoute<Req,Resp> rawRoute,
AsyncCloseable closeable)
Convenience method to wrap a raw
GrpcRoutes.ResponseStreamingRoute instance with a passed detached close
implementation of AsyncCloseable. |
Publisher<Resp> handle(GrpcServiceContext ctx, Req request)
Req.ctx - GrpcServiceContext for this call.request - Req to handle.Publisher containing the response.default Completable closeAsync()
closeAsync in interface AsyncCloseablestatic <Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> wrap(GrpcRoutes.ResponseStreamingRoute<Req,Resp> rawRoute, AsyncCloseable closeable)
GrpcRoutes.ResponseStreamingRoute instance with a passed detached close
implementation of AsyncCloseable.Req - Type of request.Resp - Type of response.rawRoute - GrpcRoutes.ResponseStreamingRoute instance that has a detached close implementation.closeable - AsyncCloseable implementation for the passed rawRoute.GrpcRoutes.ResponseStreamingRoute that attaches the passed closeable to the passed
rawRoute.