public static class ServerAddress.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ServerAddress |
build()
Verifies parameters and creates a new
ServerAddress instance. |
ServerAddress.Builder |
withHealthPort(int port)
Sets the cluster health port.
|
ServerAddress.Builder |
withHost(@NonNull java.lang.String host)
Sets the host name/address.
|
ServerAddress.Builder |
withPort(int port)
Sets the connection port.
|
public ServerAddress.Builder withHost(@NonNull @NonNull java.lang.String host)
host
- host name/addressBuilder
public ServerAddress.Builder withPort(int port)
port
- port valueBuilder
public ServerAddress.Builder withHealthPort(int port)
port
- port valueBuilder
public ServerAddress build() throws ParamException
ServerAddress
instance.ServerAddress
ParamException