public static enum Protocol.ResponseKeyword extends java.lang.Enum<Protocol.ResponseKeyword> implements Rawable
Enum Constant and Description |
---|
MESSAGE |
PMESSAGE |
PONG |
PSUBSCRIBE |
PUNSUBSCRIBE |
SUBSCRIBE |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
byte[] |
getRaw()
Get byte array.
|
static Protocol.ResponseKeyword |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protocol.ResponseKeyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol.ResponseKeyword SUBSCRIBE
public static final Protocol.ResponseKeyword PSUBSCRIBE
public static final Protocol.ResponseKeyword UNSUBSCRIBE
public static final Protocol.ResponseKeyword PUNSUBSCRIBE
public static final Protocol.ResponseKeyword MESSAGE
public static final Protocol.ResponseKeyword PMESSAGE
public static final Protocol.ResponseKeyword PONG
public static Protocol.ResponseKeyword[] values()
for (Protocol.ResponseKeyword c : Protocol.ResponseKeyword.values()) System.out.println(c);
public static Protocol.ResponseKeyword valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.