Class Util


  • @Public
    @Evolving
    public class Util
    extends java.lang.Object
    Static utility methods
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.net.InetSocketAddress> parse​(java.lang.String specs, int defaultPort)
      Parses a space and/or comma separated sequence of server specifications of the form hostname or hostname:port.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public static java.util.List<java.net.InetSocketAddress> parse​(java.lang.String specs,
                                                                       int defaultPort)
        Parses a space and/or comma separated sequence of server specifications of the form hostname or hostname:port. If the specs string is null, defaults to localhost:defaultPort.
        Returns:
        a list of InetSocketAddress objects.