Enum Class ReceiptPolicy.Policy
- All Implemented Interfaces:
Serializable, Comparable<ReceiptPolicy.Policy>, Constable
- Enclosing class:
ReceiptPolicy
Policies for requesting receipts from the STOMP server.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequest receipt for DISCONNECT commands.Request receipt for SEND commands.Request receipt for SUBSCRIBE commands.Request receipt for UNSUBSCRIBE commands. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReceiptPolicy.PolicyReturns the enum constant of this class with the specified name.static ReceiptPolicy.Policy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOR_SEND
Request receipt for SEND commands. -
FOR_SUBSCRIBE
Request receipt for SUBSCRIBE commands. -
FOR_UNSUBSCRIBE
Request receipt for UNSUBSCRIBE commands. -
FOR_DISCONNECT
Request receipt for DISCONNECT commands.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-