Enum ClickHouseHttpOption
- All Implemented Interfaces:
com.clickhouse.config.ClickHouseOption,Serializable,Comparable<ClickHouseHttpOption>,java.lang.constant.Constable
public enum ClickHouseHttpOption
extends Enum<ClickHouseHttpOption>
implements com.clickhouse.config.ClickHouseOption
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 ConstantDescriptionWhether to retry on failure with Apache HTTP Client.The time in milliseconds after which the connection is validated after inactivity.HTTP connection provider.Configuration for Apache HTTP Client connection pool.Custom HTTP headers.Deprecated.Default server response.Whether to enable keep-alive or not.Configures client with preferred connection keep alive timeout if keep alive is enabled.Max open connections apply with Apache HttpClient only.Whether to receive information about the progress of a query in response headers.Whether to remember last set role and send them in every next requests as query parameters.Indicates whether http client would send its identification through Referer header to server.Whether to use HTTP basic authentication. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Class<? extends Serializable>booleanstatic ClickHouseHttpOptionReturns the enum constant of this type with the specified name.static ClickHouseHttpOption[]values()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
HTTP connection provider. -
CUSTOM_HEADERS
Custom HTTP headers. -
CUSTOM_PARAMS
Deprecated. -
DEFAULT_RESPONSE
Default server response. -
KEEP_ALIVE
Whether to enable keep-alive or not. -
MAX_OPEN_CONNECTIONS
Max open connections apply with Apache HttpClient only. -
RECEIVE_QUERY_PROGRESS
Whether to receive information about the progress of a query in response headers. -
SEND_HTTP_CLIENT_ID
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
-
REMEMBER_LAST_SET_ROLES
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
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
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
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
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
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
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
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
- Specified by:
getDefaultValuein interfacecom.clickhouse.config.ClickHouseOption
-
getDescription
- Specified by:
getDescriptionin interfacecom.clickhouse.config.ClickHouseOption
-
getKey
- Specified by:
getKeyin interfacecom.clickhouse.config.ClickHouseOption
-
getValueType
- Specified by:
getValueTypein interfacecom.clickhouse.config.ClickHouseOption
-
isSensitive
public boolean isSensitive()- Specified by:
isSensitivein interfacecom.clickhouse.config.ClickHouseOption
-
ClickHouseClientOption.CUSTOM_SETTINGS