Parses a comma or space-delimited string of hostname and port pairs into scala pairs.
Parses a comma or space-delimited string of hostname and port pairs into scala pairs. For example,
InetSocketAddressUtil.parseHostPorts("127.0.0.1:11211") => Seq(("127.0.0.1", 11211))
a comma or space-delimited string of hostname and port pairs.
IllegalArgumentException
if host and port are not both present
Parses a comma or space-delimited string of hostname and port pairs.
Parses a comma or space-delimited string of hostname and port pairs. For example,
InetSocketAddressUtil.parseHosts("127.0.0.1:11211") => Seq(new InetSocketAddress("127.0.0.1", 11211))
a comma or space-delimited string of hostname and port pairs. Or, if it is ":*" then an a single InetSocketAddress using an ephemeral port will be returned.
IllegalArgumentException
if host and port are not both present
Resolves a sequence of host port pairs into a set of socket addresses.
Resolves a sequence of host port pairs into a set of socket addresses. For example,
InetSocketAddressUtil.resolveHostPorts(Seq(("127.0.0.1", 11211))) = Set(new InetSocketAddress("127.0.0.1", 11211))
a sequence of host port pairs
java.net.UnknownHostException
if some host cannot be resolved
converts 0.0.0.0 -> public ip in bound ip