public static AsyncClusterConnection createAsyncClusterConnection(
    ConnectionRegistryEndpoint endpoint, Configuration conf, SocketAddress localAddress, User user)
    throws IOException {
    ShortCircuitConnectionRegistry registry = new ShortCircuitConnectionRegistry(endpoint);
    return createAsyncClusterConnection(conf, registry, localAddress, user);
  }
Create a new {@link AsyncClusterConnection} instance to be used at server side where we have a
{@link ConnectionRegistryEndpoint}.
hbase-server/src/main/java/org/apache/hadoop/hbase/client/ClusterConnectionFactory.java