@ExperimentalApi public final class SimpleLoadBalancerFactory extends LoadBalancer.Factory
LoadBalancer that provides simple round-robin and pick-first routing mechanism over the
addresses from the NameResolver.| Modifier and Type | Method and Description |
|---|---|
static SimpleLoadBalancerFactory |
getInstance() |
LoadBalancer |
newLoadBalancer(String serviceName,
TransportManager tm)
Creates a
LoadBalancer that will be used inside a channel. |
public static SimpleLoadBalancerFactory getInstance()
public LoadBalancer newLoadBalancer(String serviceName, TransportManager tm)
LoadBalancer.FactoryLoadBalancer that will be used inside a channel.newLoadBalancer in class LoadBalancer.FactoryserviceName - the DNS-style service name, which is also the authoritytm - the interface where an LoadBalancer implementation gets connected
transports from