接口 ClusterInvoker<T>
-
- 类型参数:
T-
- 所有超级接口:
Invoker<T>,org.apache.dubbo.common.Node
- 所有已知实现类:
AbstractClusterInvoker,AvailableClusterInvoker,BroadcastClusterInvoker,FailbackClusterInvoker,FailfastClusterInvoker,FailoverClusterInvoker,FailsafeClusterInvoker,FilterChainBuilder.ClusterFilterChainNode,ForkingClusterInvoker,MergeableClusterInvoker,MockClusterInvoker,ZoneAwareClusterInvoker
public interface ClusterInvoker<T> extends Invoker<T>
This is the final Invoker type referenced by the RPC proxy on Consumer side.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 referr 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.URLgetRegistryUrl()default booleanhasProxyInvokers()booleanisDestroyed()default booleanisServiceDiscovery()-
从接口继承的方法 org.apache.dubbo.rpc.Invoker
getInterface, invoke
-
-