Package com.opencqrs.framework.metadata
Enum Class PropagationMode
- All Implemented Interfaces:
Serializable
,Comparable<PropagationMode>
,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that meta-data will be propagated from source to destination, but meta-data keys already present within the destination will not be overridden.Specifies that no meta-data keys (and values) will be propagated from source to destination.Specifies that meta-data will be propagated from source to destination, overriding any meta-data keys present in both source and destination. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagationMode
Returns the enum constant of this class with the specified name.static PropagationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Specifies that no meta-data keys (and values) will be propagated from source to destination. -
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
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
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
-