Package org.redisson.connection.balancer
Class WeightedRoundRobinBalancer
java.lang.Object
org.redisson.connection.balancer.WeightedRoundRobinBalancer
- All Implemented Interfaces:
LoadBalancer
Weighted Round Robin balancer.
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedRoundRobinBalancer(Map<String, Integer> weights, int defaultWeight) Creates weighted round robin balancer. -
Method Summary
-
Constructor Details
-
WeightedRoundRobinBalancer
Creates weighted round robin balancer.- Parameters:
weights- - weight mapped by slave node addr inredis://host:portformatdefaultWeight- - default weight value assigns to slaves not defined in weights map
-
-
Method Details
-
getEntry
- Specified by:
getEntryin interfaceLoadBalancer
-