Interface LoadBalancerProvider<T>

Type Parameters:
T - the configuration type (class generated from the LoadBalancerAttribute annotations).

public interface LoadBalancerProvider<T>
A load balancer provider allowing to create instances of load balancers.

Implementation should use the LoadBalancerAttribute to define attributes.

  • Method Details

    • createLoadBalancer

      LoadBalancer createLoadBalancer(T config, ServiceDiscovery serviceDiscovery)
      Creates a load balancer instance
      Parameters:
      config - the configuration
      serviceDiscovery - the service discovery used for that service
      Returns:
      the load balancer