Enum GetAckMode

    • Enum Constant Detail

      • NACK_REQUEUE_TRUE

        public static final GetAckMode NACK_REQUEUE_TRUE
        basic.get with acknowledgment enabled, but never acknowledges, so the message(s) will be requeued when the internal AMQP connection is closed.
      • REJECT_REQUEUE_TRUE

        public static final GetAckMode REJECT_REQUEUE_TRUE
        Reject the messages, request requeuing.
      • ACK_REQUEUE_FALSE

        public static final GetAckMode ACK_REQUEUE_FALSE
        Acknowledge the message, removing it from the queue.
      • REJECT_REQUEUE_FALSE

        public static final GetAckMode REJECT_REQUEUE_FALSE
        Reject the message without requeuing.
    • Method Detail

      • values

        public static GetAckMode[] 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 (GetAckMode c : GetAckMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GetAckMode 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