Package io.servicetalk.grpc.api
Interface GrpcRoutes.AllGrpcRoutes
- All Superinterfaces:
AsyncCloseable
- Enclosing class:
- GrpcRoutes<Service extends GrpcService>
Deprecated.
This class is not used starting from version 0.42.0 (see
PR#1893), we plan to remove it in future releases.
In case you have a use-case, let us know.
A collection of route corresponding to the enclosing
GrpcRoutes
.-
Method Summary
Modifier and TypeMethodDescription<Req,
Resp> GrpcRoutes.RequestStreamingRoute<Req, Resp> Deprecated.Returns the registeredGrpcRoutes.RequestStreamingRoute
for the passedpath
.<Req,
Resp> GrpcRoutes.ResponseStreamingRoute<Req, Resp> Deprecated.Returns the registeredGrpcRoutes.ResponseStreamingRoute
for the passedpath
.<Req,
Resp> GrpcRoutes.Route<Req, Resp> Deprecated.Returns the registeredGrpcRoutes.Route
for the passedpath
.<Req,
Resp> GrpcRoutes.StreamingRoute<Req, Resp> streamingRouteFor
(String path) Deprecated.Returns the registeredGrpcRoutes.StreamingRoute
for the passedpath
.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Method Details
-
streamingRouteFor
<Req,Resp> GrpcRoutes.StreamingRoute<Req,Resp> streamingRouteFor(String path) throws IllegalArgumentException Deprecated.Returns the registeredGrpcRoutes.StreamingRoute
for the passedpath
. If a route with a different programming model is registered, it will be converted to aGrpcRoutes.StreamingRoute
.- Type Parameters:
Req
- Type of request.Resp
- Type of response.- Parameters:
path
- for the route.- Returns:
- Registered
GrpcRoutes.StreamingRoute
for the passedpath
. - Throws:
IllegalArgumentException
- If the route does not exist.
-
routeFor
Deprecated.Returns the registeredGrpcRoutes.Route
for the passedpath
. If a route with a different programming model is registered, it will be converted to aGrpcRoutes.Route
.- Type Parameters:
Req
- Type of request.Resp
- Type of response.- Parameters:
path
- for the route.- Returns:
- Registered
GrpcRoutes.Route
for the passedpath
. - Throws:
IllegalArgumentException
- If the route does not exist.
-
requestStreamingRouteFor
<Req,Resp> GrpcRoutes.RequestStreamingRoute<Req,Resp> requestStreamingRouteFor(String path) throws IllegalArgumentException Deprecated.Returns the registeredGrpcRoutes.RequestStreamingRoute
for the passedpath
. If a route with a different programming model is registered, it will be converted to aGrpcRoutes.RequestStreamingRoute
.- Type Parameters:
Req
- Type of request.Resp
- Type of response.- Parameters:
path
- for the route.- Returns:
- Registered
GrpcRoutes.RequestStreamingRoute
for the passedpath
. - Throws:
IllegalArgumentException
- If the route does not exist.
-
responseStreamingRouteFor
<Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> responseStreamingRouteFor(String path) throws IllegalArgumentException Deprecated.Returns the registeredGrpcRoutes.ResponseStreamingRoute
for the passedpath
. If a route with a different programming model is registered, it will be converted to aGrpcRoutes.ResponseStreamingRoute
.- Type Parameters:
Req
- Type of request.Resp
- Type of response.- Parameters:
path
- for the route.- Returns:
- Registered
GrpcRoutes.ResponseStreamingRoute
for the passedpath
. - Throws:
IllegalArgumentException
- If the route does not exist.
-