things.thinger.service.command
Enum CommandResponse.ResponseState
java.lang.Object
java.lang.Enum<CommandResponse.ResponseState>
things.thinger.service.command.CommandResponse.ResponseState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CommandResponse.ResponseState>
- Enclosing interface:
- CommandResponse
public static enum CommandResponse.ResponseState
- extends java.lang.Enum<CommandResponse.ResponseState>
The response state disposition describes state of the interaction. They are as follows:
OPEN : command has been sent, but there has been no response.
STARTED : command has been sent, there has been some response, but it is not done.
DONE : command has been sent and the response is complete (or errored).
DISPOSED : everything is done and it has been disposed--waiting garbage collection.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OPEN
public static final CommandResponse.ResponseState OPEN
STARTED
public static final CommandResponse.ResponseState STARTED
DONE
public static final CommandResponse.ResponseState DONE
DISPOSED
public static final CommandResponse.ResponseState DISPOSED
values
public static CommandResponse.ResponseState[] 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 (CommandResponse.ResponseState c : CommandResponse.ResponseState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CommandResponse.ResponseState 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 name
java.lang.NullPointerException
- if the argument is null
Things.