Enum ClickHouseHttpOption
- All Implemented Interfaces:
com.clickhouse.config.ClickHouseOption,Serializable,Comparable<ClickHouseHttpOption>,java.lang.constant.Constable
@Deprecated
public enum ClickHouseHttpOption
extends Enum<ClickHouseHttpOption>
implements com.clickhouse.config.ClickHouseOption
Deprecated.
Http client options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Whether to retry on failure with Apache HTTP Client.Deprecated.The time in milliseconds after which the connection is validated after inactivity.Deprecated.HTTP connection provider.Deprecated.Configuration for Apache HTTP Client connection pool.Deprecated.Custom HTTP headers.Deprecated.Deprecated.Default server response.Deprecated.Whether to enable keep-alive or not.Deprecated.Configures client with preferred connection keep alive timeout if keep alive is enabled.Deprecated.Max open connections apply with Apache HttpClient only.Deprecated.Whether to receive information about the progress of a query in response headers.Deprecated.Whether to remember last set role and send them in every next requests as query parameters.Deprecated.Indicates whether http client would send its identification through Referer header to server.Deprecated.Whether to use HTTP basic authentication.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.getKey()Deprecated.Class<? extends Serializable>Deprecated.booleanDeprecated.static ClickHouseHttpOptionDeprecated.Returns the enum constant of this type with the specified name.static ClickHouseHttpOption[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.clickhouse.config.ClickHouseOption
getDefaultValueFromEnvVar, getDefaultValueFromSysProp, getEffectiveDefaultValue, getEffectiveValue, getEnvironmentVariable, getPrefix, getSystemProperty, name
-
Enum Constant Details
-
CONNECTION_PROVIDER
Deprecated.HTTP connection provider. -
CUSTOM_HEADERS
Deprecated.Custom HTTP headers. -
CUSTOM_PARAMS
Deprecated. -
DEFAULT_RESPONSE
Deprecated.Default server response. -
KEEP_ALIVE
Deprecated.Whether to enable keep-alive or not. -
MAX_OPEN_CONNECTIONS
Deprecated.Max open connections apply with Apache HttpClient only. -
RECEIVE_QUERY_PROGRESS
Deprecated.Whether to receive information about the progress of a query in response headers. -
SEND_HTTP_CLIENT_ID
Deprecated.Indicates whether http client would send its identification through Referer header to server. Valid values: 1. empty string - nothing is sent 2. IP_ADDRESS - client's IP address is used 3. HOST_NAME - host name is used -
WAIT_END_OF_QUERY
Deprecated. -
REMEMBER_LAST_SET_ROLES
Deprecated.Whether to remember last set role and send them in every next requests as query parameters. Only one role can be set at a time. -
AHC_VALIDATE_AFTER_INACTIVITY
Deprecated.The time in milliseconds after which the connection is validated after inactivity. Default value is 5000 ms. If set to negative value, the connection is never validated. It is used only for Apache Http Client connection provider. -
AHC_RETRY_ON_FAILURE
Deprecated.Whether to retry on failure with Apache HTTP Client. Failure includes some 'critical' IO exceptions:org.apache.hc.core5.http.ConnectionClosedExceptionorg.apache.hc.core5.http.NoHttpResponseException
503 Service Unavailable
-
CONNECTION_REUSE_STRATEGY
Deprecated.Configuration for Apache HTTP Client connection pool. It defines how to reuse connections. If"FIFO"is set, the connections are reused in the order they were created. If"LIFO"is set, the connections are reused as soon they are available. Default value is"LIFO". -
KEEP_ALIVE_TIMEOUT
Deprecated.Configures client with preferred connection keep alive timeout if keep alive is enabled. Usually servers tells a client how long it can keep a connection alive. This option can be used when connection should be ended earlier. If value less or equal to 0, the server's timeout is used. Default value is -1. Time unit is milliseconds. Supported only for Apache Http Client connection provider currently. -
USE_BASIC_AUTHENTICATION
Deprecated.Whether to use HTTP basic authentication. Default value is true. Password that contain UTF8 characters may not be passed through http headers and BASIC authentication is the only option here.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDefaultValue
Deprecated.- Specified by:
getDefaultValuein interfacecom.clickhouse.config.ClickHouseOption
-
getDescription
Deprecated.- Specified by:
getDescriptionin interfacecom.clickhouse.config.ClickHouseOption
-
getKey
Deprecated.- Specified by:
getKeyin interfacecom.clickhouse.config.ClickHouseOption
-
getValueType
Deprecated.- Specified by:
getValueTypein interfacecom.clickhouse.config.ClickHouseOption
-
isSensitive
public boolean isSensitive()Deprecated.- Specified by:
isSensitivein interfacecom.clickhouse.config.ClickHouseOption
-
ClickHouseClientOption.CUSTOM_SETTINGS