Class WeightedRoundRobinBalancer

java.lang.Object
org.redisson.connection.balancer.WeightedRoundRobinBalancer
All Implemented Interfaces:
LoadBalancer

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

    • 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
  • Method Details