Package com.rabbitmq.client.impl
Enum CommandAssembler.CAState
- java.lang.Object
-
- java.lang.Enum<CommandAssembler.CAState>
-
- com.rabbitmq.client.impl.CommandAssembler.CAState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommandAssembler.CAState>
- Enclosing class:
- CommandAssembler
private static enum CommandAssembler.CAState extends java.lang.Enum<CommandAssembler.CAState>
Current state, used to decide how to handle each incoming frame.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETE
EXPECTING_CONTENT_BODY
EXPECTING_CONTENT_HEADER
EXPECTING_METHOD
-
Constructor Summary
Constructors Modifier Constructor Description private
CAState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandAssembler.CAState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommandAssembler.CAState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPECTING_METHOD
public static final CommandAssembler.CAState EXPECTING_METHOD
-
EXPECTING_CONTENT_HEADER
public static final CommandAssembler.CAState EXPECTING_CONTENT_HEADER
-
EXPECTING_CONTENT_BODY
public static final CommandAssembler.CAState EXPECTING_CONTENT_BODY
-
COMPLETE
public static final CommandAssembler.CAState COMPLETE
-
-
Method Detail
-
values
public static CommandAssembler.CAState[] 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 (CommandAssembler.CAState c : CommandAssembler.CAState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandAssembler.CAState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-