T - public interface ClusterInvoker<T> extends Invoker<T>
A ClusterInvoker holds a group of normal invokers, stored in a Directory, mapping to one Registry. The ClusterInvoker implementation usually provides LB or HA policies, like FailoverClusterInvoker.
In multi-registry subscription scenario, the final ClusterInvoker will refer to several sub ClusterInvokers, with each sub ClusterInvoker representing one Registry. Take ZoneAwareClusterInvoker as an example, it is specially customized for multi-registry use cases: first, pick up one ClusterInvoker, then do LB inside the chose ClusterInvoker.
| 限定符和类型 | 方法和说明 |
|---|---|
Directory<T> |
getDirectory() |
org.apache.dubbo.common.URL |
getRegistryUrl() |
boolean |
isDestroyed() |
destroyAll, getInterface, invokeCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.