/** * Performs a simple round robin on the list of {@link ManagedChannel}s in the {@code channels} * list. * * @return A {@link ManagedChannel} that can be used for a single RPC call. */ private ManagedChannel getNextChannel() { return getChannel(indexTicker.getAndIncrement()); }
/** * Performs a simple round robin on the list of {@link ManagedChannel}s in the {@code channels} * list. * * @return A {@link ManagedChannel} that can be used for a single RPC call. */ private ManagedChannel getNextChannel() { return getChannel(indexTicker.getAndIncrement()); }
channel = ((ChannelPool) channel).getChannel(grpcContext.getChannelAffinity());
channel = ((ChannelPool) channel).getChannel(grpcContext.getChannelAffinity());