@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public class RoundRobinLoadBalancerFactory2 extends LoadBalancer2.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.
TECHNICAL PREVIEW: The name of this class is temporary. It will be renamed to
RoundRobinLoadBalancerFactory during the
transition to LBv2.
You should use it only if you want to experiment the LBv2 code path.
| Modifier and Type | Method and Description |
|---|---|
static RoundRobinLoadBalancerFactory2 |
getInstance() |
LoadBalancer2 |
newLoadBalancer(LoadBalancer2.Helper helper)
Creates a
LoadBalancer2 that will be used inside a channel. |
public static RoundRobinLoadBalancerFactory2 getInstance()
public LoadBalancer2 newLoadBalancer(LoadBalancer2.Helper helper)
LoadBalancer2.FactoryLoadBalancer2 that will be used inside a channel.newLoadBalancer in class LoadBalancer2.Factory