public static enum AmqpFailureHandler.Strategy extends Enum<AmqpFailureHandler.Strategy>
Enum Constant and Description |
---|
ACCEPT
Mark the message as
accepted and continue. |
FAIL
Mark the message as
rejected and die. |
MODIFIED_FAILED
Mark the message as
modified and continue. |
MODIFIED_FAILED_UNDELIVERABLE_HERE
Mark the message as
modified and continue. |
REJECT
Mark the message as
rejected and continue. |
RELEASE
Mark the message as
released and continue. |
Modifier and Type | Method and Description |
---|---|
static AmqpFailureHandler.Strategy |
from(String s) |
static AmqpFailureHandler.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmqpFailureHandler.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AmqpFailureHandler.Strategy FAIL
rejected
and die.public static final AmqpFailureHandler.Strategy ACCEPT
accepted
and continue.public static final AmqpFailureHandler.Strategy RELEASE
released
and continue.public static final AmqpFailureHandler.Strategy REJECT
rejected
and continue.public static final AmqpFailureHandler.Strategy MODIFIED_FAILED
modified
and continue.
This strategy increments the delivery count.
The message may be re-delivered on the same node.public static final AmqpFailureHandler.Strategy MODIFIED_FAILED_UNDELIVERABLE_HERE
modified
and continue.
This strategy increments the delivery count and mark the message as undeliverable on this node.
The message cannot be re-delivered on the same node, but may be redelivered on another node.public static AmqpFailureHandler.Strategy[] values()
for (AmqpFailureHandler.Strategy c : AmqpFailureHandler.Strategy.values()) System.out.println(c);
public static AmqpFailureHandler.Strategy 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 nullpublic static AmqpFailureHandler.Strategy from(String s)
Copyright © 2018–2021 SmallRye. All rights reserved.