Package io.atleon.rabbitmq
Enum AloRabbitMQReceiver.NackStrategy
- java.lang.Object
-
- java.lang.Enum<AloRabbitMQReceiver.NackStrategy>
-
- io.atleon.rabbitmq.AloRabbitMQReceiver.NackStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<AloRabbitMQReceiver.NackStrategy>
- Enclosing class:
- AloRabbitMQReceiver<T>
public static enum AloRabbitMQReceiver.NackStrategy extends Enum<AloRabbitMQReceiver.NackStrategy>
Strategy for handling Nacknowledgement - EMIT causes error to be emitted to subscribers - REQUEUE causes nacknowledged message to be nack'd with requeue - DISCARD causes nacknowledged message to be nack'ed with discard Default is EMIT
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AloRabbitMQReceiver.NackStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static AloRabbitMQReceiver.NackStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMIT
public static final AloRabbitMQReceiver.NackStrategy EMIT
-
REQUEUE
public static final AloRabbitMQReceiver.NackStrategy REQUEUE
-
DISCARD
public static final AloRabbitMQReceiver.NackStrategy DISCARD
-
-
Method Detail
-
values
public static AloRabbitMQReceiver.NackStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AloRabbitMQReceiver.NackStrategy c : AloRabbitMQReceiver.NackStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AloRabbitMQReceiver.NackStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-