Enum MemcacheProtocol.Opcode
java.lang.Object
java.lang.Enum<MemcacheProtocol.Opcode>
com.couchbase.client.core.io.netty.kv.MemcacheProtocol.Opcode
- All Implemented Interfaces:
Serializable
,Comparable<MemcacheProtocol.Opcode>
,java.lang.constant.Constable
- Enclosing class:
- MemcacheProtocol
public static enum MemcacheProtocol.Opcode extends Enum<MemcacheProtocol.Opcode>
Contains all known/used kv protocol opcodes.
-
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 ADD
The add (insert) command.APPEND
Binary append.COLLECTIONS_GET_CID
Returns the ID of a collection/scope combinationCOLLECTIONS_GET_MANIFEST
Returns the collections manifest for a bucket.DECREMENT
Decrement binary counter.DELETE
The delete (remove) command.DELETE_WITH_META
Deletes (tombstones) a document while setting metadata.ERROR_MAP
Command used to fetch the error map during the bootstrap process.GET
The get command.GET_AND_LOCK
Allows to get a document and perform a write lock at the same time.GET_AND_TOUCH
Allows to get a document and reset its expiry at the same time.GET_CONFIG
Returns the current configuration for the bucket ("cccp").GET_META
Fetches metadata for a documentGET_REPLICA
A replica get operation.HELLO
The hello command used during bootstrap to negoatiate the features.INCREMENT
Increment binary counter.NOOP
The noop command.OBSERVE_CAS
Performs an observe call with the CAS option.OBSERVE_SEQ
Performs an observe call via sequence numbers.PREPEND
Binary prepend.REPLACE
The replace command.SASL_AUTH
Initial auth step in the SASL negotiation.SASL_LIST_MECHS
List all SASL auth mechanisms the server supports.SASL_STEP
Subsequent steps in the SASL negotiation.SELECT_BUCKET
Command used to select a specific bucket on a connection.SET
The set (upsert) command.SUBDOC_MULTI_LOOKUP
Subdocument lookup with more than one element.SUBDOC_MULTI_MUTATE
Subdocument multi mutation.TOUCH
Touch command sets a new expiration.UNLOCK
Unlocks a write locked document. -
Method Summary
Modifier and Type Method Description byte
opcode()
Returns the opcode for the given command.static MemcacheProtocol.Opcode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MemcacheProtocol.Opcode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET
The get command. -
SET
The set (upsert) command. -
ADD
The add (insert) command. -
REPLACE
The replace command. -
DELETE
The delete (remove) command. -
INCREMENT
Increment binary counter. -
DECREMENT
Decrement binary counter. -
NOOP
The noop command. -
APPEND
Binary append. -
PREPEND
Binary prepend. -
HELLO
The hello command used during bootstrap to negoatiate the features. -
ERROR_MAP
Command used to fetch the error map during the bootstrap process. -
SELECT_BUCKET
Command used to select a specific bucket on a connection. -
SASL_LIST_MECHS
List all SASL auth mechanisms the server supports. -
SASL_AUTH
Initial auth step in the SASL negotiation. -
SASL_STEP
Subsequent steps in the SASL negotiation. -
GET_CONFIG
Returns the current configuration for the bucket ("cccp"). -
COLLECTIONS_GET_CID
Returns the ID of a collection/scope combination -
SUBDOC_MULTI_LOOKUP
Subdocument lookup with more than one element. -
SUBDOC_MULTI_MUTATE
Subdocument multi mutation. -
GET_AND_TOUCH
Allows to get a document and reset its expiry at the same time. -
GET_AND_LOCK
Allows to get a document and perform a write lock at the same time. -
OBSERVE_CAS
Performs an observe call with the CAS option. -
OBSERVE_SEQ
Performs an observe call via sequence numbers. -
GET_REPLICA
A replica get operation. -
TOUCH
Touch command sets a new expiration. -
UNLOCK
Unlocks a write locked document. -
DELETE_WITH_META
Deletes (tombstones) a document while setting metadata. -
COLLECTIONS_GET_MANIFEST
Returns the collections manifest for a bucket. -
GET_META
Fetches metadata for a document
-
-
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
-
opcode
public byte opcode()Returns the opcode for the given command.- Returns:
- the opcode for the command.
-