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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a routing key to optimize dispatching.Methods inherited from class Command
getGuarantee
-
Constructor Details
-
UpdateRelationships
public UpdateRelationships()
-
-
Method Details
-
routingKey
Returns a routing key to optimize dispatching. Uses the first available aggregate ID from the set of associations or dissociations.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-