接口 Router

    • 方法详细资料

      • getUrl

        URL getUrl()
        已过时。
        从接口复制的说明: Router
        Get the router url.
        指定者:
        getUrl 在接口中 Router
        返回:
        url
      • compareTo

        int compareTo​(Router o)
        已过时。
      • route

        default <T> List<Invoker<T>> route​(List<Invoker<T>> invokers,
                                           URL url,
                                           Invocation invocation)
                                    throws RpcException
        已过时。
        从接口复制的说明: Router
        Filter invokers with current routing rule and only return the invokers that comply with the rule.
        指定者:
        route 在接口中 Router
        参数:
        invokers - invoker list
        url - refer url
        invocation - invocation
        返回:
        routed invokers
        抛出:
        RpcException
      • isRuntime

        default boolean isRuntime()
        已过时。
        从接口复制的说明: Router
        To decide whether this router need to execute every time an RPC comes or should only execute when addresses or rule change.
        指定者:
        isRuntime 在接口中 Router
        返回:
        true if the router need to execute every time.
      • isForce

        default boolean isForce()
        已过时。
        从接口复制的说明: Router
        To decide whether this router should take effect when none of the invoker can match the router rule, which means the Router.route(List, URL, Invocation) would be empty. Most of time, most router implementation would default this value to false.
        指定者:
        isForce 在接口中 Router
        返回:
        true to execute if none of invokers matches the current router
      • getPriority

        default int getPriority()
        已过时。
        从接口复制的说明: Router
        Router's priority, used to sort routers.
        指定者:
        getPriority 在接口中 Router
        返回:
        router's priority