public final class AddrUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress |
getAddressFromURL(URL url)
Gets the address from URL.
|
static List<InetSocketAddress> |
getAddressList(List<String> servers)
Gets the address list.
|
static List<InetSocketAddress> |
getAddressList(String servers)
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> |
getAddressListFromURL(List<URL> urls)
Gets the address list from URL.
|
static List<String> |
getServerList(String servers)
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 server.
|
public static List<String> getServerList(String servers)
servers - public static List<InetSocketAddress> getAddressList(String servers)
servers - public static List<InetSocketAddress> getAddressList(List<String> servers)
servers - public static InetSocketAddress getAddressFromURL(URL url)
url - public static List<InetSocketAddress> getAddressListFromURL(List<URL> urls)
urls - Copyright © 2021. All rights reserved.