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 LoadBalancerAttribute to define attributes.
-
Method Summary
Modifier and TypeMethodDescriptioncreateLoadBalancer(T config, ServiceDiscovery serviceDiscovery) Creates a load balancer instance
-
Method Details
-
createLoadBalancer
Creates a load balancer instance- Parameters:
config- the configurationserviceDiscovery- the service discovery used for that service- Returns:
- the load balancer
-