Enum Class RollbackConfigurationType

java.lang.Object
java.lang.Enum<RollbackConfigurationType>
org.axonframework.messaging.unitofwork.RollbackConfigurationType
All Implemented Interfaces:
Serializable, Comparable<RollbackConfigurationType>, Constable, RollbackConfiguration

public enum RollbackConfigurationType extends Enum<RollbackConfigurationType> implements RollbackConfiguration
Enum containing common rollback configurations for the Unit of Work.
Since:
3.0
Author:
Rene de Waele
  • Enum Constant Details

    • NEVER

      public static final RollbackConfigurationType NEVER
      Configuration that never performs a rollback of the unit of work.
    • ANY_THROWABLE

      public static final RollbackConfigurationType ANY_THROWABLE
      Configuration that prescribes a rollback on any sort of exception or error.
    • UNCHECKED_EXCEPTIONS

      public static final RollbackConfigurationType UNCHECKED_EXCEPTIONS
      Configuration that prescribes a rollback on any sort of unchecked exception, including errors.
    • RUNTIME_EXCEPTIONS

      public static final RollbackConfigurationType RUNTIME_EXCEPTIONS
      Configuration that prescribes a rollback on runtime exceptions only.
  • Method Details

    • values

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