public enum Action extends Enum<Action>
This enumeration defines all the action that could performed in STOMP protocol.
| Enum Constant and Description |
|---|
ABORT
Aborts a transaction/
|
ACK
Acknowledgement sent to the server.
|
BEGIN
Begins a transaction.
|
COMMIT
Commits a transaction.
|
CONNECT
When client connects.
|
CONNECTED
Connection notification from server.
|
DISCONNECT
When client disconnects.
|
ERROR
Error pushed by the server.
|
MESSAGE
Message pushed by the server.
|
NACK
Negative acknowledgement sent to the server.
|
NULL
When a heartbeat is sent.
|
RECEIPT
Receipt pushed by the server.
|
SEND
Client data push for a subscription.
|
STOMP
Legacy connection frame.
|
SUBSCRIBE
When client subscribes to a destination.
|
UNSUBSCRIBE
When client stop its subscription to a destination.
|
| Modifier and Type | Method and Description |
|---|---|
static Action |
parse(String str)
Gets an
Action from its String representation. |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action NULL
public static final Action CONNECT
public static final Action DISCONNECT
public static final Action STOMP
public static final Action CONNECTED
public static final Action SEND
public static final Action BEGIN
public static final Action COMMIT
public static final Action ABORT
public static final Action SUBSCRIBE
public static final Action UNSUBSCRIBE
public static final Action ACK
public static final Action NACK
public static final Action MESSAGE
public static final Action RECEIPT
public static final Action ERROR
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action 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 nullpublic static Action parse(String str) throws IllegalActionException
Gets an Action from its String representation.
str - the string representationActionIllegalActionException - if the no action match the string representationCopyright © 2015. All Rights Reserved.