@InterfaceAudience.Public @InterfaceStability.Evolving public class Servers extends Object
Modifier and Type | Method and Description |
---|---|
static List<InetSocketAddress> |
parse(String specs,
int defaultPort)
Parses a space and/or comma separated sequence of server specifications
of the form hostname or hostname:port.
|
public static List<InetSocketAddress> parse(String specs, int defaultPort)
specs
- server specs (see description)defaultPort
- the default port if not specifiedCopyright © 2018 Apache Software Foundation. All rights reserved.