Class UpdateRelationships

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

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

These relationships allow the platform 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