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>
- Enclosing class:
MemcacheProtocol
Contains all known/used kv protocol opcodes.
-
Enum Constant Summary
Enum ConstantDescriptionThe add (insert) command.Binary append.Returns the ID of a collection/scope combinationReturns the collections manifest for a bucket.Decrement binary counter.The delete (remove) command.Deletes (tombstones) a document while setting metadata.Command used to fetch the error map during the bootstrap process.The get command.Allows to get a document and perform a write lock at the same time.Allows to get a document and reset its expiry at the same time.Returns the current configuration for the bucket ("cccp").Fetches metadata for a documentA replica get operation.The hello command used during bootstrap to negoatiate the features.Increment binary counter.The noop command.Performs an observe call with the CAS option.Performs an observe call via sequence numbers.Binary prepend.Cancel a range scan.Get more results from a range scan.Create a new range scan.The replace command.Initial auth step in the SASL negotiation.List all SASL auth mechanisms the server supports.Subsequent steps in the SASL negotiation.Command used to select a specific bucket on a connection.The set (upsert) command.Subdocument lookup with more than one element.Subdocument multi mutation.Touch command sets a new expiration.Unlocks a write locked document. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemcacheProtocol.Opcode
of
(byte input) byte
opcode()
Returns the opcode for the given command.static MemcacheProtocol.Opcode
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 -
RANGE_SCAN_CREATE
Create a new range scan. -
RANGE_SCAN_CONTINUE
Get more results from a range scan. -
RANGE_SCAN_CANCEL
Cancel a range scan. (Not required if scan completes normally.)
-
-
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.
-
of
-