Package com.couchbase.client.dcp.config
Enum Class DcpControl.Names
- All Implemented Interfaces:
Serializable,Comparable<DcpControl.Names>,java.lang.constant.Constable
- Enclosing class:
- DcpControl
All the possible control options available.
Note that not all params might be supported by the used server version, see the description for each for more information.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed to tell the Producer the size of the Consumer side buffer in bytes which the Consumer is using for flow control.Tells the server that the client would like to receive expiry opcodes when an item is expired.Enables sending extended meta data.Used to enable to tell the Producer that the Consumer supports detecting dead connections through the use of a noop.Deprecated.Sets the noop interval on the Producer.Sets the priority that the connection should have when sending data.Tells the server that the client can tolerate the server dropping the connection. -
Method Summary
Modifier and TypeMethodDescriptionvalue()static DcpControl.NamesReturns the enum constant of this class with the specified name.static DcpControl.Names[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLE_NOOP
Used to enable to tell the Producer that the Consumer supports detecting dead connections through the use of a noop. The value for this message should be set to either "true" or "false". See the page on dead connections for more details. This parameter is available starting in Couchbase 3.0. -
CONNECTION_BUFFER_SIZE
Used to tell the Producer the size of the Consumer side buffer in bytes which the Consumer is using for flow control. The value of this parameter should be an integer in string form between 1 and 2^32. See the page on flow control for more details. This parameter is available starting in Couchbase 3.0. -
SET_NOOP_INTERVAL
Sets the noop interval on the Producer. Values for this parameter should be an integer in string form between 20 and 10800. This allows the noop interval to be set between 20 seconds and 3 hours. This parameter should always be set when enabling noops to prevent the Consumer and Producer having a different noop interval. This parameter is available starting in Couchbase 3.0.1. -
SET_PRIORITY
Sets the priority that the connection should have when sending data. The priority may be set to "high", "medium", or "low". High priority connections will send messages at a higher rate than medium and low priority connections. This parameter is availale starting in Couchbase 4.0. -
ENABLE_EXT_METADATA
Enables sending extended meta data. This meta data is mainly used for internal server processes and will vary between different releases of Couchbase. See the documentation on extended meta data for more information on what will be sent. Each version of Couchbase will support a specific version of extended meta data. This parameter is available starting in Couchbase 4.0. -
ENABLE_VALUE_COMPRESSION
Deprecated.in favor of specifying compression settings by callingDcpControl.compression(CompressionMode). Scheduled for removal in next major version.Compresses values using snappy compression before sending them. This parameter is available starting in Couchbase 4.5. -
SUPPORTS_CURSOR_DROPPING
Tells the server that the client can tolerate the server dropping the connection. The server will only do this if the client cannot read data from the stream fast enough and it is highly recommended to be used in all situations. We only support disabling cursor dropping for backwards compatibility. This parameter is available starting in Couchbase 4.5. -
ENABLE_EXPIRY_OPCODE
Tells the server that the client would like to receive expiry opcodes when an item is expired. The value of this should be set to 'true' for this control to occur, and 'false' will turn them off which is also its default state. Note by setting this to true, the delete time is required inside the expiration packets so delete times (and therefore delete_v2) is implicitly enabled. This option is available in versions from Couchbase 6.5. For a general overview of this feature, see expiry-opcode-output.md.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
-
DcpControl.compression(CompressionMode).