Class ServerAddress.Builder

java.lang.Object
io.milvus.param.ServerAddress.Builder
Enclosing class:
ServerAddress

public static class ServerAddress.Builder extends Object
  • Method Details

    • 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 new ServerAddress instance.
      Returns:
      ServerAddress
      Throws:
      ParamException