Package org.redisson.api.queue
Enum ProcessingMode
- All Implemented Interfaces:
Serializable,Comparable<ProcessingMode>
Queue messages processing modes used by consumers.
- Author:
- Nikita Koksharov
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefines that multiple messages can be consumed concurrently.Defines that messages are consumed strictly in the order they arrive in the queue. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessingModeReturns the enum constant of this type with the specified name.static ProcessingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SEQUENTIAL
Defines that messages are consumed strictly in the order they arrive in the queue. -
PARALLEL
Defines that multiple messages can be consumed concurrently.
-
-
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
-