Enum Class PropagationMode

java.lang.Object
java.lang.Enum<PropagationMode>
com.opencqrs.framework.metadata.PropagationMode
All Implemented Interfaces:
Serializable, Comparable<PropagationMode>, Constable

public enum PropagationMode extends Enum<PropagationMode>
Specifies how meta-data is going to be propagated from source (for instance command meta-data) to destination (for instance published event meta-data).
See Also:
  • Enum Constant Details

    • NONE

      public static final PropagationMode NONE
      Specifies that no meta-data keys (and values) will be propagated from source to destination.
    • KEEP_IF_PRESENT

      public static final PropagationMode KEEP_IF_PRESENT
      Specifies that meta-data will be propagated from source to destination, but meta-data keys already present within the destination will not be overridden.
    • OVERRIDE_IF_PRESENT

      public static final PropagationMode OVERRIDE_IF_PRESENT
      Specifies that meta-data will be propagated from source to destination, overriding any meta-data keys present in both source and destination.
  • Method Details

    • values

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