Enum Class MessageState

java.lang.Object
java.lang.Enum<MessageState>
org.j7m.middleware.api.messaging.MessageState
All Implemented Interfaces:
Serializable, Comparable<MessageState>, Constable

public enum MessageState extends Enum<MessageState>
Durable queue message state.
  • Enum Constant Details

    • ENQUEUED

      public static final MessageState ENQUEUED
      Message was accepted for durable enqueue.
    • AVAILABLE

      public static final MessageState AVAILABLE
      Message is available for lease.
    • DELAYED

      public static final MessageState DELAYED
      Message is delayed until its not-before timestamp.
    • LEASED

      public static final MessageState LEASED
      Message is leased and invisible.
    • ACKED

      public static final MessageState ACKED
      Message was acknowledged.
    • NACKED

      public static final MessageState NACKED
      Message was negatively acknowledged.
    • RETRY_PENDING

      public static final MessageState RETRY_PENDING
      Message is waiting for retry.
    • DEAD_LETTERED

      public static final MessageState DEAD_LETTERED
      Message moved to the dead-letter set.
  • Method Details

    • values

      public static MessageState[] 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

      public static MessageState valueOf(String name)
      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 name
      NullPointerException - if the argument is null