@Singleton public class DiscoveryClientLoadBalancerFactory extends Object
LoadBalancer
instances that load balance
between available clients provided by the DiscoveryClient
.Constructor and Description |
---|
DiscoveryClientLoadBalancerFactory(DiscoveryClient discoveryClient) |
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
create(String serviceID)
Creates a
LoadBalancer for the given service ID. |
DiscoveryClient |
getDiscoveryClient() |
public DiscoveryClientLoadBalancerFactory(DiscoveryClient discoveryClient)
discoveryClient
- The discover clientpublic LoadBalancer create(String serviceID)
LoadBalancer
for the given service ID.serviceID
- The service IDLoadBalancer
public DiscoveryClient getDiscoveryClient()
DiscoveryClient
being used