merge

open override fun merge(other: Aggregate): Aggregate

Merges this Aggregate with another, combining scopes, commands, events, and resolving conflicts.

Return

A new Aggregate containing the merged configurations.

Parameters

other

The other Aggregate to merge with.

Throws

if the types, or the static tenantIds (since 9.3.0), of both are set and differ.