@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public final class RoundRobinLoadBalancerFactory extends LoadBalancer.Factory
LoadBalancer
that provides round-robin load balancing mechanism over the
addresses from the NameResolver
. The sub-lists received from the name resolver
are considered to be an EquivalentAddressGroup
and each of these sub-lists is
what is then balanced across.Modifier and Type | Method and Description |
---|---|
static RoundRobinLoadBalancerFactory |
getInstance() |
<T> LoadBalancer<T> |
newLoadBalancer(String serviceName,
TransportManager<T> tm)
Creates a
LoadBalancer that will be used inside a channel. |
public static RoundRobinLoadBalancerFactory getInstance()
public <T> LoadBalancer<T> newLoadBalancer(String serviceName, TransportManager<T> tm)
LoadBalancer.Factory
LoadBalancer
that will be used inside a channel.newLoadBalancer
in class LoadBalancer.Factory
serviceName
- the DNS-style service name, which is also the authoritytm
- the interface where an LoadBalancer
implementation gets connected
transports from