public static enum Message.Command extends Enum<Message.Command>
Enum Constant and Description |
---|
ABORT |
ACK |
BEGIN |
COMMIT |
CONNECT |
CONNECTED |
DISCONNECT |
ERROR |
MESSAGE |
RECEIPT |
SEND |
SUBSCRIBE |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
static Message.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Command SEND
public static final Message.Command SUBSCRIBE
public static final Message.Command UNSUBSCRIBE
public static final Message.Command BEGIN
public static final Message.Command COMMIT
public static final Message.Command ABORT
public static final Message.Command DISCONNECT
public static final Message.Command CONNECT
public static final Message.Command RECEIPT
public static final Message.Command CONNECTED
public static final Message.Command ERROR
public static final Message.Command ACK
public static final Message.Command MESSAGE
public static Message.Command[] values()
for (Message.Command c : Message.Command.values()) System.out.println(c);
public static Message.Command 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 © 2016. All rights reserved.