public enum StompCommand extends java.lang.Enum<StompCommand>
Enum Constant and Description |
---|
ACK |
BEGIN |
CONNECT |
CONNECTED |
DISCONNECT |
ERROR |
MESSAGE |
NACK |
RECEIPT |
SEND |
STOMP |
SUBSCRIBE |
UNKNOWN |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
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 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
- 如果参数为null
Copyright © 2008–2018 The Netty Project. All rights reserved.