Package io.milvus.param
Class ServerAddress.Builder
java.lang.Object
io.milvus.param.ServerAddress.Builder
- Enclosing class:
ServerAddress
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newServerAddressinstance.withHealthPort(int port) Sets the cluster health port.Sets the host name/address.withPort(int port) Sets the connection port.
-
Method Details
-
withHost
Sets the host name/address.- Parameters:
host- host name/address- Returns:
Builder
-
withPort
Sets the connection port. Port value must be greater than zero and less than 65536.- Parameters:
port- port value- Returns:
Builder
-
withHealthPort
Sets the cluster health port. Port value must be greater than zero and less than 65536.- Parameters:
port- port value- Returns:
Builder
-
build
Verifies parameters and creates a newServerAddressinstance.- Returns:
ServerAddress- Throws:
ParamException
-