public class DestinationParser extends Object
InetSocketAddress
es by parsing String
values.Constructor and Description |
---|
DestinationParser() |
Modifier and Type | Method and Description |
---|---|
static List<InetSocketAddress> |
parse(String destinations,
int defaultPort)
Constructs
InetSocketAddress es by parsing the given String value. |
public static List<InetSocketAddress> parse(String destinations, int defaultPort)
InetSocketAddress
es 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 © 2019. All rights reserved.