Enum AbstractBinaryMemcacheDecoder.State

java.lang.Object
java.lang.Enum<AbstractBinaryMemcacheDecoder.State>
io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheDecoder.State
All Implemented Interfaces:
Serializable, Comparable<AbstractBinaryMemcacheDecoder.State>, java.lang.constant.Constable
Enclosing class:
AbstractBinaryMemcacheDecoder<M extends BinaryMemcacheMessage>

static enum AbstractBinaryMemcacheDecoder.State extends Enum<AbstractBinaryMemcacheDecoder.State>
Contains all states this decoder can possibly be in.

Note that most of the states can be optional, the only one required is reading the header (READ_HEADER. All other steps depend on the length fields in the header and will be executed conditionally.

  • Enum Constant Details

  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static AbstractBinaryMemcacheDecoder.State[] 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

      public static AbstractBinaryMemcacheDecoder.State 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