public enum Command extends Enum<Command>
PING
command used for heartbeat. It should not be used in frames (as it's not a valid
command).Enum Constant and Description |
---|
ABORT |
ACK |
BEGIN |
COMMIT |
CONNECT |
CONNECTED |
DISCONNECT |
ERROR |
MESSAGE |
NACK |
PING |
RECEIPT |
SEND |
STOMP |
SUBSCRIBE |
UNKNOWN |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
static Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command CONNECT
public static final Command CONNECTED
public static final Command STOMP
public static final Command SEND
public static final Command SUBSCRIBE
public static final Command UNSUBSCRIBE
public static final Command ACK
public static final Command NACK
public static final Command BEGIN
public static final Command COMMIT
public static final Command ABORT
public static final Command DISCONNECT
public static final Command MESSAGE
public static final Command RECEIPT
public static final Command ERROR
public static final Command PING
public static final Command UNKNOWN
public static Command[] values()
for (Command c : Command.values()) System.out.println(c);
public static 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 © 2022 Eclipse. All rights reserved.