Enum JmsProperties.AcknowledgeMode

    • Enum Constant Detail

      • 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 Detail

      • values

        public static JmsProperties.AcknowledgeMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JmsProperties.AcknowledgeMode c : JmsProperties.AcknowledgeMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JmsProperties.AcknowledgeMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null