Package com.rabbitmq.http.client
Enum GetAckMode
- java.lang.Object
-
- java.lang.Enum<GetAckMode>
-
- com.rabbitmq.http.client.GetAckMode
-
- All Implemented Interfaces:
Serializable
,Comparable<GetAckMode>
public enum GetAckMode extends Enum<GetAckMode>
Acknowledgment mode when getting messages with the HTTP API.This determines whether the messages will be removed from the queue or not.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACK_REQUEUE_FALSE
Acknowledge the message, removing it from the queue.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_FALSE
Reject the message without requeuing.REJECT_REQUEUE_TRUE
Reject the messages, request requeuing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GetAckMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static GetAckMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
-