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 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

      public String getNewBasePath()
      Gets a new base path by taking the next item in nodes.
      Specified by:
      getNewBasePath in interface LoadBalancingStrategy
      Returns:
      the base path of the next node.