private ImmutableMap<ServerName, ClientMetaService.Interface> createStubs(RpcClient rpcClient,
    Collection<ServerName> addrs) {
    LOG.debug("Going to use new servers to create stubs: {}", addrs);
    Preconditions.checkNotNull(addrs);
    ImmutableMap.Builder<ServerName, ClientMetaService.Interface> builder =
      ImmutableMap.builderWithExpectedSize(addrs.size());
    for (ServerName masterAddr : addrs) {
      builder.put(masterAddr,
        ClientMetaService.newStub(rpcClient.createRpcChannel(masterAddr, user, rpcTimeoutMs)));
    }
    return builder.build();
  }
A class for creating {@link RpcClient} and related stubs used by
{@link AbstractRpcBasedConnectionRegistry}. We need to connect to bootstrap nodes to get the
cluster id first, before creating the final {@link RpcClient} and related stubs.
<p>
See HBASE-25051 for more details.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionRegistryRpcStubHolder.java