Enum ProcessingMode

java.lang.Object
java.lang.Enum<ProcessingMode>
org.redisson.api.queue.ProcessingMode
All Implemented Interfaces:
Serializable, Comparable<ProcessingMode>

public enum ProcessingMode extends Enum<ProcessingMode>
Queue messages processing modes used by consumers.
Author:
Nikita Koksharov
  • Enum Constant Details

    • SEQUENTIAL

      public static final ProcessingMode SEQUENTIAL
      Defines that messages are consumed strictly in the order they arrive in the queue.
    • PARALLEL

      public static final ProcessingMode PARALLEL
      Defines that multiple messages can be consumed concurrently.
  • Method Details

    • values

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

      public static ProcessingMode 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 name
      NullPointerException - if the argument is null