| 程序包 | 说明 |
|---|---|
| org.apache.dubbo.rpc.cluster | |
| org.apache.dubbo.rpc.cluster.router |
| 限定符和类型 | 方法和说明 |
|---|---|
Router |
RouterFactory.getRouter(org.apache.dubbo.common.URL url)
Create router.
|
Router |
CacheableRouterFactory.getRouter(org.apache.dubbo.common.URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Router> |
SingleRouterChain.getRouters() |
List<Router> |
RouterChain.getRouters() |
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
Router.compareTo(Router o) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SingleRouterChain.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.
|
void |
RouterChain.addRouters(List<Router> routers) |
void |
SingleRouterChain.initWithRouters(List<Router> builtinRouters)
the resident routers must being initialized before address notification.
|
| 构造器和说明 |
|---|
SingleRouterChain(List<Router> routers,
List<StateRouter<T>> stateRouters,
boolean shouldFailFast,
RouterSnapshotSwitcher routerSnapshotSwitcher) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractRouter |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.