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
  • Enum Constant Details

    • PRE_INVOCATION

      public static final ProcessingLifecycle.DefaultPhases PRE_INVOCATION
      Phase used to contain actions that occur before the main invocation. Has an order of -10000.
    • INVOCATION

      public static final ProcessingLifecycle.DefaultPhases INVOCATION
      Phase used to contain actions that occur during the main invocation. Has an order of 0.
    • POST_INVOCATION

      public static final ProcessingLifecycle.DefaultPhases POST_INVOCATION
      Phase used to contain actions that occur after the main invocation. Has an order of 10000.
    • PREPARE_COMMIT

      public static final ProcessingLifecycle.DefaultPhases PREPARE_COMMIT
      Phase used to contain actions to prepare the commit of the ProcessingLifecycle. Has an order of 20000.
    • COMMIT

      public static final ProcessingLifecycle.DefaultPhases COMMIT
      Phase used to contain actions to commit of the ProcessingLifecycle. Has an order of 30000.
    • AFTER_COMMIT

      public static final ProcessingLifecycle.DefaultPhases AFTER_COMMIT
      Phase used to contain actions to execute after the commit of the ProcessingLifecycle. Has an order of 40000.
  • Method Details

    • values

      public static ProcessingLifecycle.DefaultPhases[] 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 ProcessingLifecycle.DefaultPhases 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
    • order

      public int order()
      Description copied from interface: ProcessingLifecycle.Phase
      The 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:
      order in interface ProcessingLifecycle.Phase
      Returns:
      the int describing the relative order of this phase