Class RepairRelationships

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

public class RepairRelationships extends Command
Command to repair or re-index the relationships for an existing aggregate.

This is particularly useful when an aggregate model evolves — for example, when child entity annotations like @Member are introduced or corrected. It ensures that future commands targeting those entities can still resolve the correct aggregate and maintain event consistency.

Note: This command is intended for administrative use and is not normally emitted during regular application flows.

See Also:
  • Constructor Details

    • RepairRelationships

      public RepairRelationships()
  • Method Details

    • routingKey

      public String routingKey()
      Routing key derived from the aggregate ID to ensure consistent processing.
      Overrides:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified