Class RoundRobinLoadBalancingStrategy
java.lang.Object
com.symphony.bdk.core.client.loadbalancing.RoundRobinLoadBalancingStrategy
- All Implemented Interfaces:
LoadBalancingStrategy
@API(status=INTERNAL)
public class RoundRobinLoadBalancingStrategy
extends Object
implements LoadBalancingStrategy
The
LoadBalancingStrategy
corresponding to the
BdkLoadBalancingMode.ROUND_ROBIN
mode.-
Constructor Summary
ConstructorDescriptionRoundRobinLoadBalancingStrategy
(List<com.symphony.bdk.core.config.model.BdkServerConfig> nodes) -
Method Summary
Modifier and TypeMethodDescriptionGets a new base path by taking the next item innodes
.
-
Constructor Details
-
RoundRobinLoadBalancingStrategy
public RoundRobinLoadBalancingStrategy(List<com.symphony.bdk.core.config.model.BdkServerConfig> nodes) - Parameters:
nodes
- the list of nodes to be load balanced across in a round-robin way.
-
-
Method Details
-
getNewBasePath
Gets a new base path by taking the next item innodes
.- Specified by:
getNewBasePath
in interfaceLoadBalancingStrategy
- Returns:
- the base path of the next node.
-