接口的使用
org.apache.dubbo.rpc.cluster.Router
-
使用Router的程序包 程序包 说明 org.apache.dubbo.rpc.cluster org.apache.dubbo.rpc.cluster.router -
-
org.apache.dubbo.rpc.cluster中Router的使用
返回Router的org.apache.dubbo.rpc.cluster中的方法 修饰符和类型 方法 说明 RouterCacheableRouterFactory. getRouter(org.apache.dubbo.common.URL url)RouterRouterFactory. getRouter(org.apache.dubbo.common.URL url)Create router.返回变量类型为Router的类型的org.apache.dubbo.rpc.cluster中的方法 修饰符和类型 方法 说明 List<Router>RouterChain. getRouters()参数类型为Router的org.apache.dubbo.rpc.cluster中的方法 修饰符和类型 方法 说明 default intRouter. compareTo(Router o)类型变量类型为Router的org.apache.dubbo.rpc.cluster中的方法参数 修饰符和类型 方法 说明 voidRouterChain. addRouters(List<Router> routers)If we use route:// protocol in version before 2.7.0, each URL will generate a Router instance, so we should keep the routers up to date, that is, each time router URLs changes, we should update the routers list, only keep the builtinRouters which are available all the time and the latest notified routers which are generated from URLs.voidRouterChain. initWithRouters(List<Router> builtinRouters)the resident routers must being initialized before address notification.类型变量类型为Router的org.apache.dubbo.rpc.cluster中的构造器参数 构造器 说明 RouterChain(List<Router> routers, List<StateRouter<T>> stateRouters, boolean shouldFailFast, RouterSnapshotSwitcher routerSnapshotSwitcher) -
org.apache.dubbo.rpc.cluster.router中Router的使用
实现Router的org.apache.dubbo.rpc.cluster.router中的类 修饰符和类型 类 说明 classAbstractRouter
-