public enum GetAckMode extends java.lang.Enum<GetAckMode>
This determines whether the messages will be removed from the queue or not.
| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static GetAckMode |
valueOf(java.lang.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.
|
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.public static final GetAckMode REJECT_REQUEUE_TRUE
public static final GetAckMode ACK_REQUEUE_FALSE
public static final GetAckMode REJECT_REQUEUE_FALSE
public static GetAckMode[] values()
for (GetAckMode c : GetAckMode.values()) System.out.println(c);
public static GetAckMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null