Enum Class MessageDeliveryMode

All Implemented Interfaces:
Serializable, Comparable<MessageDeliveryMode>, Constable

public enum MessageDeliveryMode extends Enum<MessageDeliveryMode>
Enumeration for the message delivery mode. Can be persistent or non persistent. Use the method 'toInt' to get the appropriate value that is used by the AMQP protocol instead of the ordinal() value when passing into AMQP APIs.
Mark Pollack, Gary Russell
  • Enum Constant Details

  • Method Details

    • values

      public static MessageDeliveryMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageDeliveryMode 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toInt

      public static int toInt(MessageDeliveryMode mode)
    • fromInt

      public static MessageDeliveryMode fromInt(int modeAsNumber)