protected static interface GrpcRoutes.AllGrpcRoutes extends AsyncCloseable
GrpcRoutes
.Modifier and Type | Method and Description |
---|---|
<Req,Resp> GrpcRoutes.RequestStreamingRoute<Req,Resp> |
requestStreamingRouteFor(java.lang.String path)
Returns the registered
GrpcRoutes.RequestStreamingRoute for the passed path . |
<Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> |
responseStreamingRouteFor(java.lang.String path)
Returns the registered
GrpcRoutes.ResponseStreamingRoute for the passed path . |
<Req,Resp> GrpcRoutes.Route<Req,Resp> |
routeFor(java.lang.String path)
Returns the registered
GrpcRoutes.Route for the passed path . |
<Req,Resp> GrpcRoutes.StreamingRoute<Req,Resp> |
streamingRouteFor(java.lang.String path)
Returns the registered
GrpcRoutes.StreamingRoute for the passed path . |
closeAsync, closeAsyncGracefully
<Req,Resp> GrpcRoutes.StreamingRoute<Req,Resp> streamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
GrpcRoutes.StreamingRoute
for the passed path
. If a route with a different
programming model is registered, it will be converted to a GrpcRoutes.StreamingRoute
.Req
- Type of request.Resp
- Type of response.path
- for the route.GrpcRoutes.StreamingRoute
for the passed path
.java.lang.IllegalArgumentException
- If the route does not exist.<Req,Resp> GrpcRoutes.Route<Req,Resp> routeFor(java.lang.String path) throws java.lang.IllegalArgumentException
GrpcRoutes.Route
for the passed path
. If a route with a different
programming model is registered, it will be converted to a GrpcRoutes.Route
.Req
- Type of request.Resp
- Type of response.path
- for the route.GrpcRoutes.Route
for the passed path
.java.lang.IllegalArgumentException
- If the route does not exist.<Req,Resp> GrpcRoutes.RequestStreamingRoute<Req,Resp> requestStreamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
GrpcRoutes.RequestStreamingRoute
for the passed path
. If a route with a different
programming model is registered, it will be converted to a GrpcRoutes.RequestStreamingRoute
.Req
- Type of request.Resp
- Type of response.path
- for the route.GrpcRoutes.RequestStreamingRoute
for the passed path
.java.lang.IllegalArgumentException
- If the route does not exist.<Req,Resp> GrpcRoutes.ResponseStreamingRoute<Req,Resp> responseStreamingRouteFor(java.lang.String path) throws java.lang.IllegalArgumentException
GrpcRoutes.ResponseStreamingRoute
for the passed path
. If a route with a
different programming model is registered, it will be converted to a GrpcRoutes.ResponseStreamingRoute
.Req
- Type of request.Resp
- Type of response.path
- for the route.GrpcRoutes.ResponseStreamingRoute
for the passed path
.java.lang.IllegalArgumentException
- If the route does not exist.