public class DestinationParser extends Object
InetSocketAddresses by parsing String values.| Constructor and Description |
|---|
DestinationParser() |
| Modifier and Type | Method and Description |
|---|---|
static List<InetSocketAddress> |
parse(String destinations,
int defaultPort)
Constructs
InetSocketAddresses by parsing the given String value. |
public static List<InetSocketAddress> parse(String destinations, int defaultPort)
InetSocketAddresses by parsing the given String value.
The string is a comma separated list of destinations in the form of hostName[:portNumber].
For example, "host1.domain.com,host2.domain.com:5560"
If portNumber is not provided, then the given defaultPort will be used.
Copyright © 2017. All Rights Reserved.