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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConfiguration that prescribes a rollback on any sort of exception or error.Configuration that never performs a rollback of the unit of work.Configuration that prescribes a rollback on runtime exceptions only.Configuration that prescribes a rollback on any sort of unchecked exception, including errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic RollbackConfigurationTypeReturns the enum constant of this class with the specified name.static RollbackConfigurationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.axonframework.messaging.unitofwork.RollbackConfiguration
rollBackOn
-
Enum Constant Details
-
NEVER
Configuration that never performs a rollback of the unit of work. -
ANY_THROWABLE
Configuration that prescribes a rollback on any sort of exception or error. -
UNCHECKED_EXCEPTIONS
Configuration that prescribes a rollback on any sort of unchecked exception, including errors. -
RUNTIME_EXCEPTIONS
Configuration that prescribes a rollback on runtime exceptions only.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-