Interface GrpcRoutes.AllGrpcRoutes

    • Method Detail

      • streamingRouteFor

        <Req,​Resp> GrpcRoutes.StreamingRoute<Req,​Resp> streamingRouteFor​(java.lang.String path)
                                                                              throws java.lang.IllegalArgumentException
        Returns the registered GrpcRoutes.StreamingRoute for the passed path. If a route with a different programming model is registered, it will be converted to a GrpcRoutes.StreamingRoute.
        Type Parameters:
        Req - Type of request.
        Resp - Type of response.
        Parameters:
        path - for the route.
        Returns:
        Registered GrpcRoutes.StreamingRoute for the passed path.
        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 registered GrpcRoutes.Route for the passed path. If a route with a different programming model is registered, it will be converted to a GrpcRoutes.Route.
        Type Parameters:
        Req - Type of request.
        Resp - Type of response.
        Parameters:
        path - for the route.
        Returns:
        Registered GrpcRoutes.Route for the passed path.
        Throws:
        java.lang.IllegalArgumentException - If the route does not exist.