@Test public void testChannelWithLoadBalancer() { String policy = "round-robin"; GrpcChannelDescriptor cfg = GrpcChannelDescriptor.builder() .loadBalancerPolicy(policy) .build(); assertThat(cfg.loadBalancerPolicy().isPresent(), is(true)); assertThat(cfg.loadBalancerPolicy().get(), is(policy)); }
public static GrpcChannelsProvider.Builder builder() { return builder(null); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); static GrpcChannelsProvider create(); static GrpcChannelsProvider create(Config config); static GrpcChannelsProvider.Builder builder(); static GrpcChannelsProvider.Builder builder(Config config); ManagedChannel channel(String name); }
GrpcChannelsProvider { public static GrpcChannelsProvider.Builder builder() { return builder(null); } private  GrpcChannelsProvider(Map<String, GrpcChannelDescriptor> channelDescriptors); static GrpcChannelsProvider create(); static GrpcChannelsProvider create(Config config); static GrpcChannelsProvider.Builder builder(); static GrpcChannelsProvider.Builder builder(Config config); ManagedChannel channel(String name); static final String DEFAULT_CHANNEL_NAME; static final String DEFAULT_HOST; static final String CFG_KEY_CHANNELS; static final int DEFAULT_PORT; }