public static enum AcknowledgmentCallback.Status extends Enum<AcknowledgmentCallback.Status>
Enum Constant and Description |
---|
ACCEPT
Mark the message as accepted.
|
REJECT
Mark the message as rejected.
|
REQUEUE
Reject the message and requeue so that it will be redelivered.
|
Modifier and Type | Method and Description |
---|---|
static AcknowledgmentCallback.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcknowledgmentCallback.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcknowledgmentCallback.Status ACCEPT
public static final AcknowledgmentCallback.Status REJECT
public static final AcknowledgmentCallback.Status REQUEUE
public static AcknowledgmentCallback.Status[] values()
for (AcknowledgmentCallback.Status c : AcknowledgmentCallback.Status.values()) System.out.println(c);
public static AcknowledgmentCallback.Status 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 null