public static enum AmqpSubscriptionCreator.ReceiptAction extends Enum<AmqpSubscriptionCreator.ReceiptAction>
| Enum Constant and Description |
|---|
ACKNOWLEDGE
Acknowledges the message.
|
ALREADY_CONFIRMED
To be used if the message has already been confirmed; disables further handling.
|
DISCARD
Rejects the message and discards it, so that it will not be requeued.
|
REQUEUE
Rejects the message and requeues it in AMQP.
|
| Modifier and Type | Method and Description |
|---|---|
static AmqpSubscriptionCreator.ReceiptAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmqpSubscriptionCreator.ReceiptAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AmqpSubscriptionCreator.ReceiptAction ACKNOWLEDGE
This option has no effect if auto-ack is enabled.
public static final AmqpSubscriptionCreator.ReceiptAction REQUEUE
This option requires auto-ack to be disabled, see AmqpSubscriptionCreator.withAutoAck(boolean).
public static final AmqpSubscriptionCreator.ReceiptAction DISCARD
This option requires auto-ack to be disabled, see AmqpSubscriptionCreator.withAutoAck(boolean).
public static final AmqpSubscriptionCreator.ReceiptAction ALREADY_CONFIRMED
public static AmqpSubscriptionCreator.ReceiptAction[] values()
for (AmqpSubscriptionCreator.ReceiptAction c : AmqpSubscriptionCreator.ReceiptAction.values()) System.out.println(c);
public static AmqpSubscriptionCreator.ReceiptAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025. All rights reserved.