Class WeightedRoundRobinBalancer

  • All Implemented Interfaces:
    LoadBalancer

    public class WeightedRoundRobinBalancer
    extends Object
    implements LoadBalancer
    Weighted Round Robin balancer.
    Author:
    Nikita Koksharov
    • Constructor Detail

      • WeightedRoundRobinBalancer

        public WeightedRoundRobinBalancer​(Map<String,​Integer> weights,
                                          int defaultWeight)
        Creates weighted round robin balancer.
        Parameters:
        weights - - weight mapped by slave node addr in redis://host:port format
        defaultWeight - - default weight value assigns to slaves not defined in weights map