I would like to use the grpc java load balancing library, I looked at the example code, it looks like below:
public HelloWorldClient(String zkAddr) {
this(ManagedChannelBuilder.forTarget(zkAddr)
.loadBalancerFactory(RoundRobinLoadBalancerFactory.getInstance())
.nameResolverFactory(new ZkNameResolverProvider())
.usePlaintext(true));
}
I would like to pass ManagedChannelBuilder a list of service ip addresses directly, rather than let a NameResolver to resolve for me. Then I still
want to use .loadBalancerFactory(roundRobinLoadBalancerFactory.getInstance()),
if there a way to do it ?
Thanks a lot!