@Stability.Internal public enum ServerFeature extends Enum<ServerFeature>
ServerFeature
enum describes all the different negotiation modes
between the server and the SDK.Enum Constant and Description |
---|
ALT_REQUEST
Allows the server to accept requests with flexible extras.
|
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.
|
COLLECTIONS
Enables the collections feature.
|
CREATE_AS_DELETED
Enables the "create as deleted" flag, allowing a document to be created in a tombstoned state.
|
DATATYPE
Deprecated.
this feature is considered retired.
|
DUPLEX
Enables Duplex mode support.
|
JSON
Enables JSON data identification support.
|
MUTATION_SEQNO
Returns the sequence number on every mutation.
|
SELECT_BUCKET
Enable select_bucket support.
|
SNAPPY
Enable snappy-based compression support.
|
SYNC_REPLICATION
Specify durability requirements for mutations.
|
TCPDELAY
Disable TCP Nodelay.
|
TCPNODELAY
Enables TCP Nodelay.
|
TLS
The TLS feature.
|
TRACING
Enable tracing support.
|
UNORDERED_EXECUTION
Tell the server that we're ok with the server reordering the execution
of commands.
|
VATTR
Enables the vattr feature.
|
XATTR
Enable xattr support.
|
XERROR
Enable extended error map support.
|
Modifier and Type | Method and Description |
---|---|
short |
value()
Returns the actual byte value for the wire protocol.
|
static ServerFeature |
valueOf(String name)
Returns 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.
|
@Deprecated public static final ServerFeature DATATYPE
public static final ServerFeature TLS
public static final ServerFeature TCPNODELAY
public static final ServerFeature MUTATION_SEQNO
public static final ServerFeature TCPDELAY
public static final ServerFeature XATTR
public static final ServerFeature XERROR
public static final ServerFeature SELECT_BUCKET
public static final ServerFeature SNAPPY
public static final ServerFeature JSON
public static final ServerFeature DUPLEX
public static final ServerFeature CLUSTERMAP_CHANGE_NOTIFICATION
public static final ServerFeature UNORDERED_EXECUTION
public static final ServerFeature TRACING
public static final ServerFeature ALT_REQUEST
public static final ServerFeature SYNC_REPLICATION
public static final ServerFeature COLLECTIONS
public static final ServerFeature VATTR
public static final ServerFeature CREATE_AS_DELETED
public static ServerFeature[] values()
for (ServerFeature c : ServerFeature.values()) System.out.println(c);
public static ServerFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic short value()
Copyright © 2020 Couchbase, Inc.. All rights reserved.