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 ) ; }
Static factory method to create a new client instance . This method produces a client connected to the supplied addresses .