@API(status=INTERNAL) public class RoundRobinLoadBalancingStrategy extends java.lang.Object implements LoadBalancingStrategy
LoadBalancingStrategy
corresponding to the
BdkLoadBalancingMode.ROUND_ROBIN
mode.Constructor and Description |
---|
RoundRobinLoadBalancingStrategy(java.util.List<BdkServerConfig> nodes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewBasePath()
Gets a new base path by taking the next item in
nodes . |
public RoundRobinLoadBalancingStrategy(java.util.List<BdkServerConfig> nodes)
nodes
- the list of nodes to be load balanced across in a round-robin way.public java.lang.String getNewBasePath()
nodes
.getNewBasePath
in interface LoadBalancingStrategy