public static enum RabbitMQFailureHandler.Strategy extends Enum<RabbitMQFailureHandler.Strategy>
Enum Constant and Description |
---|
ACCEPT
Mark the message as
accepted and continue. |
FAIL
Mark the message as
rejected and die. |
REJECT
Mark the message as
rejected and continue. |
RELEASE
Mark the message as
released and continue. |
Modifier and Type | Method and Description |
---|---|
static RabbitMQFailureHandler.Strategy |
from(String s) |
static RabbitMQFailureHandler.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RabbitMQFailureHandler.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RabbitMQFailureHandler.Strategy FAIL
rejected
and die.public static final RabbitMQFailureHandler.Strategy ACCEPT
accepted
and continue.public static final RabbitMQFailureHandler.Strategy RELEASE
released
and continue.public static final RabbitMQFailureHandler.Strategy REJECT
rejected
and continue.public static RabbitMQFailureHandler.Strategy[] values()
for (RabbitMQFailureHandler.Strategy c : RabbitMQFailureHandler.Strategy.values()) System.out.println(c);
public static RabbitMQFailureHandler.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 RabbitMQFailureHandler.Strategy from(String s)
Copyright © 2018–2021 SmallRye. All rights reserved.