Package net.spy.memcached.tapmessage
Enum Class TapOpcode
- All Implemented Interfaces:
Serializable
,Comparable<TapOpcode>
,Constable
The Opcode enum contains a list all of the different opcodes that can be
passed in a tap message in the flag field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefines a delete message to specify a key has been deleted.Defines the end of a checkpoint.Defines a tap flush message.Defines a key-value mutation message to specify a key-value has changed.Defines a tap no-op message.Defines a opaque message to send control data to the consumer.Defines a request message to open a tap connection.Defines a SASL authorization message.Defines a SASL list mechanism message.Defines the start of a checkpoint.Defines a vBucket set message to set the state of a vBucket in the consumer. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
static TapOpcode
getOpcodeByByte
(byte b) static TapOpcode
Returns the enum constant of this class with the specified name.static TapOpcode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOOP
Defines a tap no-op message. -
SASLLIST
Defines a SASL list mechanism message. -
SASLAUTH
Defines a SASL authorization message. -
REQUEST
Defines a request message to open a tap connection. -
MUTATION
Defines a key-value mutation message to specify a key-value has changed. -
DELETE
Defines a delete message to specify a key has been deleted. -
FLUSH
Defines a tap flush message. -
OPAQUE
Defines a opaque message to send control data to the consumer. -
VBUCKETSET
Defines a vBucket set message to set the state of a vBucket in the consumer. -
START_CHECKPOINT
Defines the start of a checkpoint. -
END_CHECKPOINT
Defines the end of a checkpoint.
-
-
Field Details
-
opcode
private byte opcodeThe opcode value.
-
-
Constructor Details
-
TapOpcode
private TapOpcode(byte opcode) Defines the magic value.- Parameters:
magic
- - The new magic value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOpcode
public byte getOpcode() -
getOpcodeByByte
-