Class DiscoveryClientLoadBalancerFactory
java.lang.Object
io.micronaut.http.client.loadbalance.DiscoveryClientLoadBalancerFactory
A factory class that can be replaced at runtime for creating
LoadBalancer
instances that load balance
between available clients provided by the DiscoveryClient
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DiscoveryClientLoadBalancerFactory
- Parameters:
discoveryClient
- The discover client
-
-
Method Details
-
create
Creates aLoadBalancer
for the given service ID.- Parameters:
serviceID
- The service ID- Returns:
- The
LoadBalancer
-
getDiscoveryClient
- Returns:
- The
DiscoveryClient
being used
-