Enum ServerFeature
- All Implemented Interfaces:
Serializable,Comparable<ServerFeature>,java.lang.constant.Constable
The
ServerFeature enum describes all the different negotiation modes
between the server and the SDK.- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows the server to accept requests with flexible extras.Request the server to push any cluster maps stored by ns_server into one of the buckets the client have access to.Enables the collections feature.Enables the "create as deleted" flag, allowing a document to be created in a tombstoned state.Deprecated.this feature is considered retired.Enables Duplex mode support.Enables JSON data identification support.Returns the sequence number on every mutation.Enables preserving expiry when updating document.Enable select_bucket support.Enable snappy-based compression support.Specify durability requirements for mutations.Disable TCP Nodelay.Enables TCP Nodelay.The TLS feature.Enable tracing support.Tell the server that we're ok with the server reordering the execution of commands.Enables the vattr feature.Enable xattr support.Enable extended error map support. -
Method Summary
Modifier and TypeMethodDescriptionshortvalue()Returns the actual byte value for the wire protocol.static ServerFeatureReturns the enum constant of this type with the specified name.static ServerFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATATYPE
Deprecated.this feature is considered retired.The custom datatype feature. -
TLS
The TLS feature. -
TCPNODELAY
Enables TCP Nodelay. -
MUTATION_SEQNO
Returns the sequence number on every mutation. -
TCPDELAY
Disable TCP Nodelay. -
XATTR
Enable xattr support. -
XERROR
Enable extended error map support. -
SELECT_BUCKET
Enable select_bucket support. -
SNAPPY
Enable snappy-based compression support. -
JSON
Enables JSON data identification support. -
DUPLEX
Enables Duplex mode support. -
CLUSTERMAP_CHANGE_NOTIFICATION
Request the server to push any cluster maps stored by ns_server into one of the buckets the client have access to. -
UNORDERED_EXECUTION
Tell the server that we're ok with the server reordering the execution of commands. -
TRACING
Enable tracing support. -
ALT_REQUEST
Allows the server to accept requests with flexible extras. -
SYNC_REPLICATION
Specify durability requirements for mutations. -
COLLECTIONS
Enables the collections feature.History note: There was a "collections" feature in Couchbase in 5.0, but it had a different code (0x09) that has since been retired.
-
PRESERVE_TTL
Enables preserving expiry when updating document. -
VATTR
Enables the vattr feature. Note that vattrs (such as $document) were available before this, but this flag signifies that if a vattr is requested that the server does not recognise, it will be rejected with the correct XATTR_UNKNOWN_VATTR error, rather than the connection being disconnected. -
CREATE_AS_DELETED
Enables the "create as deleted" flag, allowing a document to be created in a tombstoned state.
-
-
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.
-