Enum Class ChainExecutionOccurrence

java.lang.Object
java.lang.Enum<ChainExecutionOccurrence>
org.mule.sdk.api.annotation.route.ChainExecutionOccurrence
All Implemented Interfaces:
Serializable, Comparable<ChainExecutionOccurrence>, Constable

@MinMuleVersion("4.7") @DoNotEnforceMinMuleVersion public enum ChainExecutionOccurrence extends Enum<ChainExecutionOccurrence>
Describes how many times the inner chain in a scope or route is expected to be called each time the owning component is executed.
Since:
1.7.0
  • Enum Constant Details

    • ONCE_OR_NONE

      public static final ChainExecutionOccurrence ONCE_OR_NONE
      Chain execution may be skipped, but will not be executed more than once
    • ONCE

      public static final ChainExecutionOccurrence ONCE
      Chain execution may not be skipped, but will only be executed once
    • AT_LEAST_ONCE

      public static final ChainExecutionOccurrence AT_LEAST_ONCE
      Chain may be executed multiple times, but will for sure be executed at least once
    • MULTIPLE_OR_NONE

      public static final ChainExecutionOccurrence MULTIPLE_OR_NONE
      Chain may be executed multiple times or non at all
    • UNKNOWN

      public static final ChainExecutionOccurrence UNKNOWN
      The owning component does not provide information about how the chain will be used. This is the default value that legacy components will return
  • Method Details

    • values

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