public class WeightedRoundRobinBalancer extends Object implements LoadBalancer
| Constructor and Description |
|---|
WeightedRoundRobinBalancer(Map<String,Integer> weights,
int defaultWeight)
Creates weighted round robin balancer.
|
| Modifier and Type | Method and Description |
|---|---|
ClientConnectionsEntry |
getEntry(List<ClientConnectionsEntry> clients) |
public WeightedRoundRobinBalancer(Map<String,Integer> weights, int defaultWeight)
weights - - weight mapped by slave node addr in redis://host:port formatdefaultWeight - - default weight value assigns to slaves not defined in weights mappublic ClientConnectionsEntry getEntry(List<ClientConnectionsEntry> clients)
getEntry in interface LoadBalancerCopyright © 2014–2018 The Redisson Project. All rights reserved.