public static enum MessageDecoder.State extends Enum<MessageDecoder.State>
| Enum Constant and Description |
|---|
BODY
It requires message body.
|
EOS
The end-of-stream state.
|
INITIAL
The initial state.
|
METADATA
It requires metadata.
|
METADATA_LENGTH
It requires int32_t metadata length.
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
MessageDecoder.State |
intern() |
String |
toString() |
static MessageDecoder.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageDecoder.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDecoder.State INITIAL
public static final MessageDecoder.State METADATA_LENGTH
public static final MessageDecoder.State METADATA
public static final MessageDecoder.State BODY
public static final MessageDecoder.State EOS
public static MessageDecoder.State[] values()
for (MessageDecoder.State c : MessageDecoder.State.values()) System.out.println(c);
public static MessageDecoder.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic MessageDecoder.State intern()
public String toString()
toString in class Enum<MessageDecoder.State>Copyright © 2021. All rights reserved.