Class RoundRobinLoadBalancer

    • Constructor Detail

      • RoundRobinLoadBalancer

        public RoundRobinLoadBalancer​(org.springframework.beans.factory.ObjectProvider<ServiceInstanceListSupplier> serviceInstanceListSupplierProvider,
                                      String serviceId)
        Parameters:
        serviceInstanceListSupplierProvider - a provider of ServiceInstanceListSupplier that will be used to get available instances
        serviceId - id of the service for which to choose an instance
      • RoundRobinLoadBalancer

        public RoundRobinLoadBalancer​(org.springframework.beans.factory.ObjectProvider<ServiceInstanceListSupplier> serviceInstanceListSupplierProvider,
                                      String serviceId,
                                      int seedPosition)
        Parameters:
        serviceInstanceListSupplierProvider - a provider of ServiceInstanceListSupplier that will be used to get available instances
        serviceId - id of the service for which to choose an instance
        seedPosition - Round Robin element position marker