public interface ServerAddress
| Modifier and Type | Method and Description |
|---|---|
String |
host()
Retrieve the host portion of this
ServerAddress. |
static ServerAddress |
of(String host,
int port)
Create a new address with the given host and port.
|
int |
port()
Retrieve the port portion of this
ServerAddress. |
String host()
ServerAddress.null.int port()
ServerAddress.static ServerAddress of(String host, int port)
host - the host portion. Should not be null.port - the port portion. Should be in range [0, 65535].