public final class AddrUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<InetSocketAddress> |
getAddresses(List<String> servers) |
static List<InetSocketAddress> |
getAddresses(String s)
Split a string containing whitespace or comma separated host or IP
addresses and port numbers of the form "host:port host2:port" or
"host:port, host2:port" into a List of InetSocketAddress instances suitable
for instantiating a MemcachedClient.
|
static List<InetSocketAddress> |
getAddressesFromURL(List<URL> servers) |
public static List<InetSocketAddress> getAddresses(String s)
public static List<InetSocketAddress> getAddresses(List<String> servers)
public static List<InetSocketAddress> getAddressesFromURL(List<URL> servers)
Copyright © 2016. All rights reserved.