Enum Class AggregateEventRouting
- All Implemented Interfaces:
Serializable, Comparable<AggregateEventRouting>, Constable
Controls how events published from an aggregate are assigned to a message segment.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRoute aggregate events by the aggregate id, regardless of routing annotations on the event payload.Use the enclosing aggregate's configured event routing.Preserve the regular message routing behavior. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregateEventRoutingReturns the enum constant of this class with the specified name.static AggregateEventRouting[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use the enclosing aggregate's configured event routing. At the aggregate level, this behaves likeMESSAGE_ROUTING_KEY. -
MESSAGE_ROUTING_KEY
Preserve the regular message routing behavior. If the event payload has a@RoutingKey, that value determines the segment. -
AGGREGATE_ID
Route aggregate events by the aggregate id, regardless of routing annotations on the event payload.
-
-
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
-