Class UpdateRelationships

java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.modeling.UpdateRelationships
All Implemented Interfaces:
JsonType

public class UpdateRelationships extends Command
Command to inform the Fluxzero Runtime about changes in entity-aggregate relationships.

These relationships allow the Runtime to determine which aggregate contains a given entity. This is crucial when targeting nested entities with commands or when appending resulting events to the appropriate aggregate.

  • Constructor Details

    • UpdateRelationships

      public UpdateRelationships()
  • Method Details

    • routingKey

      public String routingKey()
      Returns a routing key to optimize dispatching. Uses the first available aggregate ID from the set of associations or dissociations.
      Overrides:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified