Enum Class AggregateEventRouting

java.lang.Object
java.lang.Enum<AggregateEventRouting>
io.fluxzero.sdk.modeling.AggregateEventRouting
All Implemented Interfaces:
Serializable, Comparable<AggregateEventRouting>, Constable

public enum AggregateEventRouting extends Enum<AggregateEventRouting>
Controls how events published from an aggregate are assigned to a message segment.
  • Enum Constant Details

    • DEFAULT

      public static final AggregateEventRouting DEFAULT
      Use the enclosing aggregate's configured event routing. At the aggregate level, this behaves like MESSAGE_ROUTING_KEY.
    • MESSAGE_ROUTING_KEY

      public static final AggregateEventRouting MESSAGE_ROUTING_KEY
      Preserve the regular message routing behavior. If the event payload has a @RoutingKey, that value determines the segment.
    • AGGREGATE_ID

      public static final AggregateEventRouting AGGREGATE_ID
      Route aggregate events by the aggregate id, regardless of routing annotations on the event payload.
  • Method Details

    • values

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