code: public static InetSocketAddress createWithResolveRetry(
      String hostname,
      int port
    ) {
      return createWithResolveRetry(
        hostname,
        port,
        DEFAULT_DELAY_MILLIS,
        DEFAULT_MAX_ATTEMPTS
      );
    }
docs: Utility function to create an InetSocketAddress that has been resolved.
  Retries once and sleeps 100ms between the failure and the retry
  
  @param hostname
  @param port
  @return InetSocketAddress, may be unresolved if both attempts fail