@Override
  public void close() {
    trace(() -> {
      if (registryEndpointRefresher != null) {
        registryEndpointRefresher.stop();
      }
      if (rpcStubHolder != null) {
        rpcStubHolder.close();
      }
    }, getClass().getSimpleName() + ".close");
  }
Simple helper to transform the result of getMetaRegionLocations() rpc.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/AbstractRpcBasedConnectionRegistry.java