Package io.milvus.connection
Class ServerSetting.Builder
java.lang.Object
io.milvus.connection.ServerSetting.Builder
- Enclosing class:
ServerSetting
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newConnectParaminstance.withHost(@NonNull ServerAddress serverAddress) Sets the server addresswithMilvusClient(MilvusClient milvusClient) Sets the server client for a cluster
-
Method Details
-
withHost
Sets the server address- Parameters:
serverAddress- ServerAddress host,port/server- Returns:
Builder
-
withMilvusClient
Sets the server client for a cluster- Parameters:
milvusClient- MilvusClient- Returns:
Builder
-
build
Verifies parameters and creates a newConnectParaminstance.- Returns:
ConnectParam- Throws:
ParamException
-