Enum ClickHouseGrpcOption
- java.lang.Object
-
- java.lang.Enum<ClickHouseGrpcOption>
-
- com.clickhouse.client.grpc.config.ClickHouseGrpcOption
-
- All Implemented Interfaces:
ClickHouseOption,Serializable,Comparable<ClickHouseGrpcOption>
public enum ClickHouseGrpcOption extends Enum<ClickHouseGrpcOption> implements ClickHouseOption
gRPC client options.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOW_CONTROL_WINDOWFlow control window.MAX_INBOUND_MESSAGE_SIZEMaximum message size.MAX_INBOUND_METADATA_SIZEMaximum size of metadata.USE_FULL_STREAM_DECOMPRESSIONWhether to use full stream decompression.USE_OKHTTPWhether to use Okhttp instead of Netty.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablegetDefaultValue()StringgetDescription()StringgetKey()Class<? extends Serializable>getValueType()static ClickHouseGrpcOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static ClickHouseGrpcOption[]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
-
FLOW_CONTROL_WINDOW
public static final ClickHouseGrpcOption FLOW_CONTROL_WINDOW
Flow control window.
-
MAX_INBOUND_MESSAGE_SIZE
public static final ClickHouseGrpcOption MAX_INBOUND_MESSAGE_SIZE
Maximum message size.
-
MAX_INBOUND_METADATA_SIZE
public static final ClickHouseGrpcOption MAX_INBOUND_METADATA_SIZE
Maximum size of metadata.
-
USE_OKHTTP
public static final ClickHouseGrpcOption USE_OKHTTP
Whether to use Okhttp instead of Netty.
-
USE_FULL_STREAM_DECOMPRESSION
public static final ClickHouseGrpcOption USE_FULL_STREAM_DECOMPRESSION
Whether to use full stream decompression.
-
-
Method Detail
-
values
public static ClickHouseGrpcOption[] 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 (ClickHouseGrpcOption c : ClickHouseGrpcOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClickHouseGrpcOption 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
-
-