code: public static RiakClient newClient(InetSocketAddress... addresses) throws UnknownHostException
      {
          final List<String> remoteAddresses = new ArrayList<>(addresses.length);
  
          for (InetSocketAddress addy : addresses)
          {
              remoteAddresses.add(
                      String.format("%s:%s", addy.getHostName(), addy.getPort())
                  );
          }
  
          return newClient(createDefaultNodeBuilder(), remoteAddresses);
      }
docs: Static factory method to create a new client instance.
  This method produces a client connected to the supplied addresses.
  @param addresses one or more addresses to connect to.
  @return a new RiakClient instance.
  @throws java.net.UnknownHostException if a supplied hostname cannot be resolved.