@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public final class PickFirstBalancerFactory2 extends LoadBalancer2.Factory
LoadBalancer2
that provides no load balancing mechanism over the
addresses from the NameResolver
. The channel's default behavior
(currently pick-first) is used for all addresses found.
TECHNICAL PREVIEW: The name of this class is temporary. It will be renamed to
PickFirstBalancerFactory
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 PickFirstBalancerFactory2 |
getInstance() |
LoadBalancer2 |
newLoadBalancer(LoadBalancer2.Helper helper)
Creates a
LoadBalancer2 that will be used inside a channel. |
public static PickFirstBalancerFactory2 getInstance()
public LoadBalancer2 newLoadBalancer(LoadBalancer2.Helper helper)
LoadBalancer2.Factory
LoadBalancer2
that will be used inside a channel.newLoadBalancer
in class LoadBalancer2.Factory