public enum RemotingCommandType extends Enum<RemotingCommandType>
Enum Constant and Description |
---|
REQUEST_COMMAND |
RESPONSE_COMMAND |
Modifier and Type | Method and Description |
---|---|
static RemotingCommandType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemotingCommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemotingCommandType REQUEST_COMMAND
public static final RemotingCommandType RESPONSE_COMMAND
public static RemotingCommandType[] values()
for (RemotingCommandType c : RemotingCommandType.values()) System.out.println(c);
public static RemotingCommandType 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 nullCopyright © 2014. All Rights Reserved.