Enum ClickHouseHttpOption
- java.lang.Object
-
- java.lang.Enum<ClickHouseHttpOption>
-
- com.clickhouse.client.http.config.ClickHouseHttpOption
-
- All Implemented Interfaces:
ClickHouseOption,Serializable,Comparable<ClickHouseHttpOption>
public enum ClickHouseHttpOption extends Enum<ClickHouseHttpOption> implements ClickHouseOption
gRPC client options.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_PROVIDERHTTP connection provider.CUSTOM_HEADERSCustom HTTP headers.CUSTOM_PARAMSCustom HTTP query parameters.DEFAULT_RESPONSEDefault server response.KEEP_ALIVEWhether to enable keep-alive or not.RECEIVE_QUERY_PROGRESSWhether to receive information about the progress of a query in response headers.WEB_CONTEXTFlow control window.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablegetDefaultValue()StringgetDescription()StringgetKey()Class<? extends Serializable>getValueType()static ClickHouseHttpOptionvalueOf(String name)Returns 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.clickhouse.client.config.ClickHouseOption
getDefaultValueFromEnvVar, getDefaultValueFromSysProp, getEffectiveDefaultValue, getEffectiveValue, getPrefix, name
-
-
-
-
Enum Constant Detail
-
CONNECTION_PROVIDER
public static final ClickHouseHttpOption CONNECTION_PROVIDER
HTTP connection provider.
-
CUSTOM_HEADERS
public static final ClickHouseHttpOption CUSTOM_HEADERS
Custom HTTP headers.
-
CUSTOM_PARAMS
public static final ClickHouseHttpOption CUSTOM_PARAMS
Custom HTTP query parameters.
-
DEFAULT_RESPONSE
public static final ClickHouseHttpOption DEFAULT_RESPONSE
Default server response.
-
KEEP_ALIVE
public static final ClickHouseHttpOption KEEP_ALIVE
Whether to enable keep-alive or not.
-
RECEIVE_QUERY_PROGRESS
public static final ClickHouseHttpOption RECEIVE_QUERY_PROGRESS
Whether to receive information about the progress of a query in response headers.
-
WEB_CONTEXT
public static final ClickHouseHttpOption WEB_CONTEXT
Flow control window.
-
-
Method Detail
-
values
public static ClickHouseHttpOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClickHouseHttpOption c : ClickHouseHttpOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClickHouseHttpOption valueOf(String name)
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
public Serializable getDefaultValue()
- Specified by:
getDefaultValuein interfaceClickHouseOption
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceClickHouseOption
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceClickHouseOption
-
getValueType
public Class<? extends Serializable> getValueType()
- Specified by:
getValueTypein interfaceClickHouseOption
-
-