java.lang.Object
java.lang.Enum<ErrorMode>
org.apache.curator.framework.recipes.queue.ErrorMode
All Implemented Interfaces:
Serializable, Comparable<ErrorMode>, java.lang.constant.Constable

public enum ErrorMode extends Enum<ErrorMode>
Used when the queue is created with a QueueBuilder.lockPath(String). Determines the behavior when the queue consumer throws an exception
  • Enum Constant Details

    • REQUEUE

      public static final ErrorMode REQUEUE
      If the consumer throws an exception, requeue the message. This is the default.
    • DELETE

      public static final ErrorMode DELETE
      If the consumer throws an exception, delete the message
  • Method Details

    • values

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