Package io.milvus.param
Class ServerAddress.Builder
- java.lang.Object
-
- io.milvus.param.ServerAddress.Builder
-
- Enclosing class:
- ServerAddress
public static class ServerAddress.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerAddressbuild()Verifies parameters and creates a newServerAddressinstance.ServerAddress.BuilderwithHealthPort(int port)Sets the cluster health port.ServerAddress.BuilderwithHost(@NonNull String host)Sets the host name/address.ServerAddress.BuilderwithPort(int port)Sets the connection port.
-
-
-
Method Detail
-
withHost
public ServerAddress.Builder withHost(@NonNull @NonNull String host)
Sets the host name/address.- Parameters:
host- host name/address- Returns:
Builder
-
withPort
public ServerAddress.Builder withPort(int port)
Sets the connection port. Port value must be greater than zero and less than 65536.- Parameters:
port- port value- Returns:
Builder
-
withHealthPort
public ServerAddress.Builder withHealthPort(int port)
Sets the cluster health port. Port value must be greater than zero and less than 65536.- Parameters:
port- port value- Returns:
Builder
-
build
public ServerAddress build() throws ParamException
Verifies parameters and creates a newServerAddressinstance.- Returns:
ServerAddress- Throws:
ParamException
-
-