public enum StompCommand extends java.lang.Enum<StompCommand>
枚举常量和说明 |
---|
ABORT |
ACK |
BEGIN |
COMMIT |
CONNECT |
CONNECTED |
DISCONNECT |
ERROR |
MESSAGE |
NACK |
RECEIPT |
SEND |
STOMP |
SUBSCRIBE |
UNKNOWN |
UNSUBSCRIBE |
限定符和类型 | 方法和说明 |
---|---|
static StompCommand |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static StompCommand[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StompCommand STOMP
public static final StompCommand CONNECT
public static final StompCommand CONNECTED
public static final StompCommand SEND
public static final StompCommand SUBSCRIBE
public static final StompCommand UNSUBSCRIBE
public static final StompCommand ACK
public static final StompCommand NACK
public static final StompCommand BEGIN
public static final StompCommand ABORT
public static final StompCommand COMMIT
public static final StompCommand DISCONNECT
public static final StompCommand MESSAGE
public static final StompCommand RECEIPT
public static final StompCommand ERROR
public static final StompCommand UNKNOWN
public static StompCommand[] values()
for (StompCommand c : StompCommand.values()) System.out.println(c);
public static StompCommand valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值