@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() |
<T> LoadBalancer<T> |
newLoadBalancer(String serviceName,
TransportManager<T> tm)
Creates a
LoadBalancer that will be used inside a channel. |
public static SimpleLoadBalancerFactory getInstance()
public <T> LoadBalancer<T> newLoadBalancer(String serviceName, TransportManager<T> 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