Package io.servicetalk.grpc.api
Interface GrpcRoutes.AllGrpcRoutes
-
- All Superinterfaces:
AsyncCloseable
- Enclosing class:
- GrpcRoutes<Service extends GrpcService>
protected static interface GrpcRoutes.AllGrpcRoutes extends AsyncCloseable
A collection of route corresponding to the enclosingGrpcRoutes
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Req,Resp>
GrpcRoutes.RequestStreamingRoute<Req,Resp>requestStreamingRouteFor(java.lang.String path)
Returns the registeredGrpcRoutes.RequestStreamingRoute
for the passedpath
.<Req,Resp>
GrpcRoutes.ResponseStreamingRoute<Req,Resp>responseStreamingRouteFor(java.lang.String path)
Returns the registeredGrpcRoutes.ResponseStreamingRoute
for the passedpath
.<Req,Resp>
GrpcRoutes.Route<Req,Resp>routeFor(java.lang.String path)
Returns the registeredGrpcRoutes.Route
for the passedpath
.<Req,Resp>
GrpcRoutes.StreamingRoute<Req,Resp>streamingRouteFor(java.lang.String path)
Returns the registeredGrpcRoutes.StreamingRoute
for the passedpath
.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
-
-
-
Method Detail
-
streamingRouteFor
<Req,Resp> GrpcRoutes.StreamingRoute<Req,Resp> streamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException
- If the route does not exist.
-
routeFor
<Req,Resp> GrpcRoutes.Route<Req,Resp> routeFor(java.lang.String path) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException
- If the route does not exist.
-
requestStreamingRouteFor
<Req,Resp> GrpcRoutes.RequestStreamingRoute<Req,Resp> requestStreamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException
- If the route does not exist.
-
responseStreamingRouteFor
<Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> responseStreamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException
- If the route does not exist.
-
-