Enum Class MessageState
- All Implemented Interfaces:
Serializable, Comparable<MessageState>, Constable
Durable queue message state.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMessage was acknowledged.Message is available for lease.Message moved to the dead-letter set.Message is delayed until its not-before timestamp.Message was accepted for durable enqueue.Message is leased and invisible.Message was negatively acknowledged.Message is waiting for retry. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageStateReturns the enum constant of this class with the specified name.static MessageState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENQUEUED
Message was accepted for durable enqueue. -
AVAILABLE
Message is available for lease. -
DELAYED
Message is delayed until its not-before timestamp. -
LEASED
Message is leased and invisible. -
ACKED
Message was acknowledged. -
NACKED
Message was negatively acknowledged. -
RETRY_PENDING
Message is waiting for retry. -
DEAD_LETTERED
Message moved to the dead-letter set.
-
-
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
-