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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRouting key derived from the aggregate ID to ensure consistent processing.Methods inherited from class io.fluxcapacitor.common.api.Command
getGuarantee
-
Constructor Details
-
RepairRelationships
public RepairRelationships()
-
-
Method Details
-
routingKey
Routing key derived from the aggregate ID to ensure consistent processing.- Overrides:
routingKey
in classCommand
- Returns:
- a routing key string, or
null
if not specified
-