Enum SagaPropagation

    • Enum Constant Detail

      • REQUIRED

        public static final SagaPropagation REQUIRED
        Join the existing saga or create a new one if it does not exist.
      • REQUIRES_NEW

        public static final SagaPropagation REQUIRES_NEW
        Always create a new saga. Suspend the old saga and resume it when the new one terminates.
      • MANDATORY

        public static final SagaPropagation MANDATORY
        A saga must be already present. The existing saga is joined.
      • SUPPORTS

        public static final SagaPropagation SUPPORTS
        If a saga already exists, then join it.
      • NOT_SUPPORTED

        public static final SagaPropagation NOT_SUPPORTED
        If a saga already exists, it is suspended and resumed when the current block completes.
      • NEVER

        public static final SagaPropagation NEVER
        The current block must never be invoked within a saga.
    • Method Detail

      • values

        public static SagaPropagation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SagaPropagation c : SagaPropagation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SagaPropagation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null