public static enum Protocol.ResponseKeyword extends Enum<Protocol.ResponseKeyword> implements Rawable
Enum Constant and Description |
---|
MESSAGE |
PMESSAGE |
PONG |
PSUBSCRIBE |
PUNSUBSCRIBE |
SUBSCRIBE |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
byte[] |
getRaw() |
static Protocol.ResponseKeyword |
valueOf(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(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 © 2022. All rights reserved.