Enum AcknowledgeMode

    • Enum Constant Detail

      • AUTO_ACKNOWLEDGE

        public static final AcknowledgeMode AUTO_ACKNOWLEDGE
        Acknowledges automatically after message reception over JMS api.
      • DUPS_OK_ACKNOWLEDGE

        public static final AcknowledgeMode DUPS_OK_ACKNOWLEDGE
        Messages are acknowledged lazily which can result in duplicate messages being delivered.
    • Method Detail

      • values

        public static 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 (AcknowledgeMode c : 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 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
      • getAckMode

        public int getAckMode()
        Returns JMS api constant equivalent of this ack mode as specified in Connection.createSession(boolean, int).
        Returns:
        1 for AUTO_ACKNOWLEDGE or 2 for CLIENT_ACKNOWLEDGE or 3 for DUPS_OK_ACKNOWLEDGE