Enum Class FifoBatchGroupingStrategy

java.lang.Object
java.lang.Enum<FifoBatchGroupingStrategy>
io.awspring.cloud.sqs.listener.FifoBatchGroupingStrategy
All Implemented Interfaces:
Serializable, Comparable<FifoBatchGroupingStrategy>, Constable

public enum FifoBatchGroupingStrategy extends Enum<FifoBatchGroupingStrategy>
Grouping strategy for Fifo SQS with batch listener mode.
Since:
3.1.2
Author:
Alexis SEGURA
  • Enum Constant Details

    • PROCESS_MESSAGE_GROUPS_IN_PARALLEL_BATCHES

      public static final FifoBatchGroupingStrategy 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

      public static final FifoBatchGroupingStrategy 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

      public static FifoBatchGroupingStrategy[] 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

      public static FifoBatchGroupingStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null