类 ZoneAwareClusterInvoker<T>

  • 所有已实现的接口:
    Node, ClusterInvoker<T>, Invoker<T>

    public class ZoneAwareClusterInvoker<T>
    extends AbstractClusterInvoker<T>
    When there're more than one registry for subscription.

    This extension provides a strategy to decide how to distribute traffics among them: 1. registry marked as 'preferred=true' has the highest priority. 2. check the zone the current request belongs, pick the registry that has the same zone first. 3. Evenly balance traffic between all registries based on each registry's weight. 4. Pick anyone that's available.