Enum ServerFeatures
- java.lang.Object
-
- java.lang.Enum<ServerFeatures>
-
- com.couchbase.client.core.endpoint.ServerFeatures
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerFeatures>
public enum ServerFeatures extends Enum<ServerFeatures>
Features the client negotiates with the server on a per-connection basis.- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATATYPE
The custom datatype feature.MUTATION_SEQNO
Return the sequence number on every mutation.SELECT_BUCKET
Enable select_bucket supportSNAPPY
Enable snappy-based compression support.TCPDELAY
Disable TCP Nodelay.TCPNODELAY
Enable TCP Nodelay.TRACING
Enable tracing support.XATTR
Enable xattr supportXERROR
Enable extended error map support.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
DATATYPE
public static final ServerFeatures DATATYPE
The custom datatype feature.- Since:
- Couchbase Server 4.0
-
TCPNODELAY
public static final ServerFeatures TCPNODELAY
Enable TCP Nodelay.- Since:
- Couchbase Server 4.0
-
MUTATION_SEQNO
public static final ServerFeatures MUTATION_SEQNO
Return the sequence number on every mutation.- Since:
- Couchbase Server 4.0
-
TCPDELAY
public static final ServerFeatures TCPDELAY
Disable TCP Nodelay.- Since:
- Couchbase Server 4.0
-
XATTR
public static final ServerFeatures XATTR
Enable xattr support- Since:
- Couchbase Server Spock (5.0)
-
XERROR
public static final ServerFeatures XERROR
Enable extended error map support.- Since:
- Couchbase Server Spock (5.0)
-
SELECT_BUCKET
public static final ServerFeatures SELECT_BUCKET
Enable select_bucket support- Since:
- Couchbase Server Spock (5.0)
-
SNAPPY
public static final ServerFeatures SNAPPY
Enable snappy-based compression support.- Since:
- Couchbase Server Vulcan (5.5)
-
TRACING
public static final ServerFeatures TRACING
Enable tracing support.- Since:
- Couchbase Server Vulcan (5.5)
-
-
Method Detail
-
values
public static ServerFeatures[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerFeatures c : ServerFeatures.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerFeatures valueOf(String name)
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
public static ServerFeatures fromValue(short input)
-
-