| Package | Description |
|---|---|
| org.apache.dubbo.rpc.cluster | |
| org.apache.dubbo.rpc.cluster.router |
| Modifier and Type | Method and Description |
|---|---|
Router |
RouterFactory.getRouter(org.apache.dubbo.common.URL url)
Create router.
|
Router |
CacheableRouterFactory.getRouter(org.apache.dubbo.common.URL url) |
| Modifier and Type | Method and Description |
|---|---|
List<Router> |
RouterChain.getRouters() |
| Modifier and Type | Method and Description |
|---|---|
default int |
Router.compareTo(Router o) |
| Modifier and Type | Method and Description |
|---|---|
void |
RouterChain.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.initWithRouters(List<Router> builtinRouters)
the resident routers must being initialized before address notification.
|
| Constructor and Description |
|---|
RouterChain(List<Router> routers,
List<StateRouter<T>> stateRouters,
boolean shouldFailFast,
RouterSnapshotSwitcher routerSnapshotSwitcher) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRouter |
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.