Enum ClickHouseDefaults

java.lang.Object
java.lang.Enum<ClickHouseDefaults>
com.clickhouse.client.config.ClickHouseDefaults
All Implemented Interfaces:
ClickHouseOption, Serializable, Comparable<ClickHouseDefaults>, java.lang.constant.Constable

@Deprecated public enum ClickHouseDefaults extends Enum<ClickHouseDefaults> implements ClickHouseOption
Deprecated.
System-wide default options. System properties and environment variables can be set to change default value.

For example, by default ASYNC is set to true. However, you can change it to false by either specifying -Ddefault_async=false on the Java command line, or setting environment variable DEFAULT_ASYNC=false.

  • Enum Constant Details

    • ASYNC

      public static final ClickHouseDefaults ASYNC
      Deprecated.
      Default execution mode.
    • AUTO_SESSION

      public static final ClickHouseDefaults AUTO_SESSION
      Deprecated.
      Whether to create session automatically when there are multiple queries.
    • BUFFERING

      public static final ClickHouseDefaults BUFFERING
      Deprecated.
      Default buffering mode.
    • HOST

      public static final ClickHouseDefaults HOST
      Deprecated.
      Default server host.
    • PROTOCOL

      public static final ClickHouseDefaults PROTOCOL
      Deprecated.
      Default protocol.
    • DATABASE

      public static final ClickHouseDefaults DATABASE
      Deprecated.
      Default database.
    • USER

      public static final ClickHouseDefaults USER
      Deprecated.
      Default user.
    • PASSWORD

      public static final ClickHouseDefaults PASSWORD
      Deprecated.
      Default password.
    • FORMAT

      public static final ClickHouseDefaults FORMAT
      Deprecated.
      Default format.
    • MAX_SCHEDULER_THREADS

      public static final ClickHouseDefaults MAX_SCHEDULER_THREADS
      Deprecated.
      Maximum number of threads that the scheduler(shared by all client instances) can use to run the adhoc/scheduled tasks like discovery and health check.
    • MAX_THREADS

      public static final ClickHouseDefaults MAX_THREADS
      Deprecated.
      Max threads.
    • MAX_REQUESTS

      public static final ClickHouseDefaults MAX_REQUESTS
      Deprecated.
      Max requests.
    • ROUNDING_MODE

      public static final ClickHouseDefaults ROUNDING_MODE
      Deprecated.
      Rounding mode for type conversion.
    • THREAD_KEEPALIVE_TIMEOUT

      public static final ClickHouseDefaults THREAD_KEEPALIVE_TIMEOUT
      Deprecated.
      Thread keep alive timeout in milliseconds.
    • SERVER_TIME_ZONE

      public static final ClickHouseDefaults SERVER_TIME_ZONE
      Deprecated.
      Server time zone, defaults to UTC.
    • SERVER_VERSION

      public static final ClickHouseDefaults SERVER_VERSION
      Deprecated.
      Server version, defaults to latest.
    • SSL_CERTIFICATE_TYPE

      public static final ClickHouseDefaults SSL_CERTIFICATE_TYPE
      Deprecated.
      SSL certificiate type.
    • SSL_KEY_ALGORITHM

      public static final ClickHouseDefaults SSL_KEY_ALGORITHM
      Deprecated.
      SSL key algorithm.
    • SSL_PROTOCOL

      public static final ClickHouseDefaults SSL_PROTOCOL
      Deprecated.
      SSL key.
    • SRV_RESOLVE

      public static final ClickHouseDefaults SRV_RESOLVE
      Deprecated.
      Whether to resolve DNS SRV name using SrvResolver(e.g. resolve SRV record to extract both host and port from a given name).
  • Method Details

    • values

      public static ClickHouseDefaults[] values()
      Deprecated.
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ClickHouseDefaults valueOf(String name)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDefaultValue

      public Serializable getDefaultValue()
      Deprecated.
      Specified by:
      getDefaultValue in interface ClickHouseOption
    • getDescription

      public String getDescription()
      Deprecated.
      Specified by:
      getDescription in interface ClickHouseOption
    • getKey

      public String getKey()
      Deprecated.
      Specified by:
      getKey in interface ClickHouseOption
    • getPrefix

      public String getPrefix()
      Deprecated.
      Specified by:
      getPrefix in interface ClickHouseOption
    • getValueType

      public Class<? extends Serializable> getValueType()
      Deprecated.
      Specified by:
      getValueType in interface ClickHouseOption
    • isSensitive

      public boolean isSensitive()
      Deprecated.
      Specified by:
      isSensitive in interface ClickHouseOption