Enum Class TapOpcode

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

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 Details

    • 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.
    • START_CHECKPOINT

      public static final TapOpcode START_CHECKPOINT
      Defines the start of a checkpoint.
    • END_CHECKPOINT

      public static final TapOpcode END_CHECKPOINT
      Defines the end of a checkpoint.
  • Field Details

    • opcode

      private byte opcode
      The opcode value.
  • Constructor Details

    • TapOpcode

      private TapOpcode(byte opcode)
      Defines the magic value.
      Parameters:
      magic - - The new magic value
  • Method Details

    • values

      public static TapOpcode[] 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

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

      public byte getOpcode()
    • getOpcodeByByte

      public static TapOpcode getOpcodeByByte(byte b)