Package com.github.fridujo.rabbitmq.mock
Enum DeadLettering.ReasonType
- java.lang.Object
-
- java.lang.Enum<DeadLettering.ReasonType>
-
- com.github.fridujo.rabbitmq.mock.DeadLettering.ReasonType
-
- All Implemented Interfaces:
Serializable,Comparable<DeadLettering.ReasonType>
- Enclosing interface:
- DeadLettering
public static enum DeadLettering.ReasonType extends Enum<DeadLettering.ReasonType>
-
-
Field Summary
Fields Modifier and Type Field Description StringheaderValue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeadLettering.ReasonTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DeadLettering.ReasonType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REJECTED
public static final DeadLettering.ReasonType REJECTED
The message was rejected with requeue parameter set to false.
-
EXPIRED
public static final DeadLettering.ReasonType EXPIRED
The message TTL has expired.
-
MAX_LEN
public static final DeadLettering.ReasonType MAX_LEN
The maximum allowed queue length was exceeded.
-
-
Field Detail
-
headerValue
public final String headerValue
-
-
Method Detail
-
values
public static DeadLettering.ReasonType[] 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 (DeadLettering.ReasonType c : DeadLettering.ReasonType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeadLettering.ReasonType 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
-
-