Enum Management.DelayedRetryType
- All Implemented Interfaces:
Serializable, Comparable<Management.DelayedRetryType>, java.lang.constant.Constable
- Enclosing interface:
Management
Conditions for delaying a message.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll returned messages are delayed, regardless of whether the delivery count was incremented.Delayed retry is not applied (default).Only messages with incrementeddelivery-countare delayed.Only messages without incrementeddelivery-countare delayed. -
Method Summary
Modifier and TypeMethodDescriptiontype()static Management.DelayedRetryTypeReturns the enum constant of this type with the specified name.static Management.DelayedRetryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISABLED
Delayed retry is not applied (default). -
ALL
All returned messages are delayed, regardless of whether the delivery count was incremented. -
FAILED
Only messages with incrementeddelivery-countare delayed.This happens for example when discarding a message with
Consumer.Context.discard()orConsumer.Context.discard(java.util.Map). -
RETURNED
Only messages without incrementeddelivery-countare delayed.This happens for example when requeuing a message with
Consumer.Context.requeue()orConsumer.Context.requeue(java.util.Map).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
type
-