Enum ServerFeatures
- All Implemented Interfaces:
Serializable
,Comparable<ServerFeatures>
,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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
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 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
-