net.spy.memcached.tapmessage
Enum TapOpcode

java.lang.Object
  extended by java.lang.Enum<TapOpcode>
      extended by net.spy.memcached.tapmessage.TapOpcode
All Implemented Interfaces:
Serializable, Comparable<TapOpcode>

public enum TapOpcode
extends Enum<TapOpcode>

The Opcode enum contains a list all of the different opcodes that can be passed in a tap message in the flag field.


Enum Constant Summary
DELETE
          Defines a delete message to specify a key has been deleted
FLUSH
          Defines a tap flush message
MUTATION
          Defines a key-value mutation message to specify a key-value has changed
NOOP
          Defines a tap no-op message
OPAQUE
          Defines a opaque message to send control data to the consumer
REQUEST
          Defines a request message to open a tap connection
SASLAUTH
          Defines a SASL authorization message
SASLLIST
          Defines a SASL list mechanism message
VBUCKETSET
          Defines a vBucket set message to set the state of a vBucket in the consumer
 
Field Summary
 byte opcode
          The opcode value
 
Method Summary
static TapOpcode getOpcodeByByte(byte b)
           
static TapOpcode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TapOpcode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOOP

public static final TapOpcode NOOP
Defines a tap no-op message


SASLLIST

public static final TapOpcode SASLLIST
Defines a SASL list mechanism message


SASLAUTH

public static final TapOpcode SASLAUTH
Defines a SASL authorization message


REQUEST

public static final TapOpcode REQUEST
Defines a request message to open a tap connection


MUTATION

public static final TapOpcode MUTATION
Defines a key-value mutation message to specify a key-value has changed


DELETE

public static final TapOpcode DELETE
Defines a delete message to specify a key has been deleted


FLUSH

public static final TapOpcode FLUSH
Defines a tap flush message


OPAQUE

public static final TapOpcode OPAQUE
Defines a opaque message to send control data to the consumer


VBUCKETSET

public static final TapOpcode VBUCKETSET
Defines a vBucket set message to set the state of a vBucket in the consumer

Field Detail

opcode

public byte opcode
The opcode value

Method Detail

values

public static TapOpcode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TapOpcode c : TapOpcode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TapOpcode valueOf(String name)
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 name
NullPointerException - if the argument is null

getOpcodeByByte

public static TapOpcode getOpcodeByByte(byte b)