Enum Class JmsProperties.AcknowledgeMode

java.lang.Object
java.lang.Enum<JmsProperties.AcknowledgeMode>
org.springframework.boot.autoconfigure.jms.JmsProperties.AcknowledgeMode
All Implemented Interfaces:
Serializable, Comparable<JmsProperties.AcknowledgeMode>, Constable
Enclosing class:
JmsProperties

public static enum JmsProperties.AcknowledgeMode extends Enum<JmsProperties.AcknowledgeMode>
Translate the acknowledge modes defined on the Session.

Session.SESSION_TRANSACTED is not defined as we take care of this already via a call to setSessionTransacted.

  • Enum Constant Details

    • AUTO

      public static final JmsProperties.AcknowledgeMode AUTO
      Messages sent or received from the session are automatically acknowledged. This is the simplest mode and enables once-only message delivery guarantee.
    • CLIENT

      public static final JmsProperties.AcknowledgeMode CLIENT
      Messages are acknowledged once the message listener implementation has called Message.acknowledge(). This mode gives the application (rather than the JMS provider) complete control over message acknowledgement.
    • DUPS_OK

      public static final JmsProperties.AcknowledgeMode DUPS_OK
      Similar to auto acknowledgment except that said acknowledgment is lazy. As a consequence, the messages might be delivered more than once. This mode enables at-least-once message delivery guarantee.
  • Method Details

    • values

      public static JmsProperties.AcknowledgeMode[] 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 JmsProperties.AcknowledgeMode 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
    • getMode

      public int getMode()