public static class ServerSetting.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ServerSetting |
build()
Verifies parameters and creates a new
ConnectParam instance. |
ServerSetting.Builder |
withHost(@NonNull ServerAddress serverAddress)
Sets the server address
|
ServerSetting.Builder |
withMilvusClient(MilvusClient milvusClient)
Sets the server client for a cluster
|
public ServerSetting.Builder withHost(@NonNull @NonNull ServerAddress serverAddress)
serverAddress
- ServerAddress host,port/serverBuilder
public ServerSetting.Builder withMilvusClient(MilvusClient milvusClient)
milvusClient
- MilvusClientBuilder
public ServerSetting build() throws ParamException
ConnectParam
instance.ConnectParam
ParamException