Package io.awspring.cloud.sqs.listener
Enum Class FifoBatchGroupingStrategy
- All Implemented Interfaces:
Serializable,Comparable<FifoBatchGroupingStrategy>,Constable
Grouping strategy for Fifo SQS with batch listener mode.
- Since:
- 3.1.2
- Author:
- Alexis SEGURA
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault strategy.Each batch contains messages originating from multiple message groups. -
Method Summary
Modifier and TypeMethodDescriptionstatic FifoBatchGroupingStrategyReturns the enum constant of this class with the specified name.static FifoBatchGroupingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROCESS_MESSAGE_GROUPS_IN_PARALLEL_BATCHES
Default strategy. Group messages in batches by message group. Each batch contains messages from a single message group. The order of messages within the group is preserved. As message groups are processed in parallel, this strategy provides the maximal throughput. -
PROCESS_MULTIPLE_GROUPS_IN_SAME_BATCH
Each batch contains messages originating from multiple message groups. The order of messages within each group is preserved. Note that FIFO queues do not serve new messages from a group until all the messages for that group in the previous batch have been acknowledged or their visibility expired.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-