public enum ServerFeatures extends Enum<ServerFeatures>
Features the client negotiates with the server on a per-connection basis.
Enum Constant and Description |
---|
DATATYPE
The custom datatype feature.
|
MUTATION_SEQNO
Return the sequence number on every mutation.
|
SELECT_BUCKET
Enable select_bucket support
|
TCPDELAY
Disable TCP Nodelay.
|
TCPNODELAY
Enable TCP Nodelay.
|
XATTR
Enable xattr support
|
XERROR
Enable extended error map support.
|
Modifier and Type | Method and Description |
---|---|
static ServerFeatures |
fromValue(short input) |
short |
value()
Returns the actual byte value for the wire protocol.
|
static ServerFeatures |
valueOf(String name)
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.
|
public static final ServerFeatures DATATYPE
public static final ServerFeatures TCPNODELAY
public static final ServerFeatures MUTATION_SEQNO
public static final ServerFeatures TCPDELAY
public static final ServerFeatures XATTR
public static final ServerFeatures XERROR
public static final ServerFeatures SELECT_BUCKET
public static ServerFeatures[] values()
for (ServerFeatures c : ServerFeatures.values()) System.out.println(c);
public static ServerFeatures 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()
Returns the actual byte value for the wire protocol.
public static ServerFeatures fromValue(short input)
Copyright © 2017 Couchbase, Inc.. All rights reserved.