@Singleton
public class DiscoveryClientLoadBalancerFactory
extends java.lang.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(java.lang.String serviceID)
Creates a
LoadBalancer for the given service ID. |
DiscoveryClient |
getDiscoveryClient() |
public DiscoveryClientLoadBalancerFactory(DiscoveryClient discoveryClient)
discoveryClient
- The discover clientpublic LoadBalancer create(java.lang.String serviceID)
LoadBalancer
for the given service ID.serviceID
- The service IDLoadBalancer
public DiscoveryClient getDiscoveryClient()
DiscoveryClient
being used