Enum Class ProcessingLifecycle.DefaultPhases
java.lang.Object
java.lang.Enum<ProcessingLifecycle.DefaultPhases>
org.axonframework.messaging.core.unitofwork.ProcessingLifecycle.DefaultPhases
- All Implemented Interfaces:
Serializable,Comparable<ProcessingLifecycle.DefaultPhases>,Constable,ProcessingLifecycle.Phase
- Enclosing interface:
ProcessingLifecycle
public static enum ProcessingLifecycle.DefaultPhases
extends Enum<ProcessingLifecycle.DefaultPhases>
implements ProcessingLifecycle.Phase
Default phases used for the shorthand methods in the
ProcessingLifecycle.- Since:
- 5.0.0
- Author:
- Allard Buijze, Gerard Klijs, Milan Savić, Mitchell Herrijgers, Sara Pellegrini, Steven van Beelen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPhase used to contain actions to execute after the commit of theProcessingLifecycle.Phase used to contain actions to commit of theProcessingLifecycle.Phase used to contain actions that occur during the main invocation.Phase used to contain actions that occur after the main invocation.Phase used to contain actions that occur before the main invocation.Phase used to contain actions to prepare the commit of theProcessingLifecycle. -
Method Summary
Modifier and TypeMethodDescriptionintorder()The order of this phase compared to other phases.Returns the enum constant of this class with the specified name.static ProcessingLifecycle.DefaultPhases[]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.core.unitofwork.ProcessingLifecycle.Phase
isAfter, isBefore
-
Enum Constant Details
-
PRE_INVOCATION
Phase used to contain actions that occur before the main invocation. Has an order of-10000. -
INVOCATION
Phase used to contain actions that occur during the main invocation. Has an order of0. -
POST_INVOCATION
Phase used to contain actions that occur after the main invocation. Has an order of10000. -
PREPARE_COMMIT
Phase used to contain actions to prepare the commit of theProcessingLifecycle. Has an order of20000. -
COMMIT
Phase used to contain actions to commit of theProcessingLifecycle. Has an order of30000. -
AFTER_COMMIT
Phase used to contain actions to execute after the commit of theProcessingLifecycle. Has an order of40000.
-
-
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
-
order
public int order()Description copied from interface:ProcessingLifecycle.PhaseThe order of this phase compared to other phases. Phases with the same order are considered "simultaneous" and may have their handlers invoked in parallel.- Specified by:
orderin interfaceProcessingLifecycle.Phase- Returns:
- The
intdescribing the relative order of this phase.
-