public static enum Frame.Command extends Enum<Frame.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 Frame.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Frame.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Frame.Command CONNECT
public static final Frame.Command CONNECTED
public static final Frame.Command STOMP
public static final Frame.Command SEND
public static final Frame.Command SUBSCRIBE
public static final Frame.Command UNSUBSCRIBE
public static final Frame.Command ACK
public static final Frame.Command NACK
public static final Frame.Command BEGIN
public static final Frame.Command COMMIT
public static final Frame.Command ABORT
public static final Frame.Command DISCONNECT
public static final Frame.Command MESSAGE
public static final Frame.Command RECEIPT
public static final Frame.Command ERROR
public static final Frame.Command PING
public static final Frame.Command UNKNOWN
public static Frame.Command[] values()
for (Frame.Command c : Frame.Command.values()) System.out.println(c);
public static Frame.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 © 2023 Eclipse. All rights reserved.