Enum ServerFeatures
- All Implemented Interfaces:
Serializable
,Comparable<ServerFeatures>
,java.lang.constant.Constable
Features the client negotiates with the server on a per-connection basis.
- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe custom datatype feature.Return the sequence number on every mutation.Enable select_bucket supportEnable snappy-based compression support.Disable TCP Nodelay.Enable TCP Nodelay.Enable tracing support.Enable xattr supportEnable extended error map support. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerFeatures
fromValue
(short input) short
value()
Returns the actual byte value for the wire protocol.static ServerFeatures
Returns the enum constant of this type with the specified name.static ServerFeatures[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATATYPE
The custom datatype feature.- Since:
- Couchbase Server 4.0
-
TCPNODELAY
Enable TCP Nodelay.- Since:
- Couchbase Server 4.0
-
MUTATION_SEQNO
Return the sequence number on every mutation.- Since:
- Couchbase Server 4.0
-
TCPDELAY
Disable TCP Nodelay.- Since:
- Couchbase Server 4.0
-
XATTR
Enable xattr support- Since:
- Couchbase Server Spock (5.0)
-
XERROR
Enable extended error map support.- Since:
- Couchbase Server Spock (5.0)
-
SELECT_BUCKET
Enable select_bucket support- Since:
- Couchbase Server Spock (5.0)
-
SNAPPY
Enable snappy-based compression support.- Since:
- Couchbase Server Vulcan (5.5)
-
TRACING
Enable tracing support.- Since:
- Couchbase Server Vulcan (5.5)
-
-
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
-
value
public short value()Returns the actual byte value for the wire protocol.- Returns:
- the actual wire value.
-
fromValue
-