Enum RewindAction

java.lang.Object
java.lang.Enum<RewindAction>
com.lmax.disruptor.RewindAction
All Implemented Interfaces:
Serializable, Comparable<RewindAction>, java.lang.constant.Constable

public enum RewindAction extends Enum<RewindAction>
The result returned from the BatchRewindStrategy that decides whether to rewind or throw the exception
  • Enum Constant Details

    • REWIND

      public static final RewindAction REWIND
      Rewind and replay the whole batch from he beginning
    • THROW

      public static final RewindAction THROW
      rethrows the exception, delegating it to the configured ExceptionHandler
  • Constructor Details

    • RewindAction

      private RewindAction()
  • Method Details

    • values

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