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 ADDThe add (insert) command.APPENDBinary append.COLLECTIONS_GET_CIDReturns the ID of a collection/scope combinationCOLLECTIONS_GET_MANIFESTReturns the collections manifest for a bucket.DECREMENTDecrement binary counter.DELETEThe delete (remove) command.DELETE_WITH_METADeletes (tombstones) a document while setting metadata.ERROR_MAPCommand used to fetch the error map during the bootstrap process.GETThe get command.GET_AND_LOCKAllows to get a document and perform a write lock at the same time.GET_AND_TOUCHAllows to get a document and reset its expiry at the same time.GET_CONFIGReturns the current configuration for the bucket ("cccp").GET_METAFetches metadata for a documentGET_REPLICAA replica get operation.HELLOThe hello command used during bootstrap to negoatiate the features.INCREMENTIncrement binary counter.NOOPThe noop command.OBSERVE_CASPerforms an observe call with the CAS option.OBSERVE_SEQPerforms an observe call via sequence numbers.PREPENDBinary prepend.REPLACEThe replace command.SASL_AUTHInitial auth step in the SASL negotiation.SASL_LIST_MECHSList all SASL auth mechanisms the server supports.SASL_STEPSubsequent steps in the SASL negotiation.SELECT_BUCKETCommand used to select a specific bucket on a connection.SETThe set (upsert) command.SUBDOC_MULTI_LOOKUPSubdocument lookup with more than one element.SUBDOC_MULTI_MUTATESubdocument multi mutation.TOUCHTouch command sets a new expiration.UNLOCKUnlocks a write locked document. -
Method Summary
Modifier and Type Method Description byteopcode()Returns the opcode for the given command.static MemcacheProtocol.OpcodevalueOf(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.
-