Package io.smallrye.stork.spi
Interface LoadBalancerProvider<T>
-
- Type Parameters:
T- the configuration type (class generated from theLoadBalancerAttributeannotations).
public interface LoadBalancerProvider<T>A load balancer provider allowing to create instances of load balancers.Implementation should use the
LoadBalancerAttributeto define attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoadBalancercreateLoadBalancer(T config, ServiceDiscovery serviceDiscovery)Creates a load balancer instance
-
-
-
Method Detail
-
createLoadBalancer
LoadBalancer createLoadBalancer(T config, ServiceDiscovery serviceDiscovery)
Creates a load balancer instance- Parameters:
config- the configurationserviceDiscovery- the service discovery used for that service- Returns:
- the load balancer
-
-