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>
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSomething went wrong while decoding the message or chunks.Currently reading the value chunks (optional).Currently reading the extras portion (optional).Currently reading the header portion.Currently reading the key portion (optional). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static AbstractBinaryMemcacheDecoder.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READ_HEADER
Currently reading the header portion. -
READ_EXTRAS
Currently reading the extras portion (optional). -
READ_KEY
Currently reading the key portion (optional). -
READ_CONTENT
Currently reading the value chunks (optional). -
BAD_MESSAGE
Something went wrong while decoding the message or chunks.
-
-
Constructor Details
-
State
private State()
-
-
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
-