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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a routing key to optimize dispatching.Methods inherited from class io.fluxcapacitor.common.api.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:
routingKey
in classCommand
- Returns:
- a routing key string, or
null
if not specified
-