Snapshot event that captures the entire aggregate. The motivation is that the aggregate contains all relevant state.
<> The type of aggregate this snapshot captures
- Allard Buijze
Initialize a new AggregateSnapshot for the given
. Note that the aggregate may not contain
aggregate The aggregate containing the state to capture in the snapshot
java.lang.IllegalArgumentException if the aggregate contains uncommitted modifications
Return the aggregate that was captured in this snapshot.
- the aggregate that was captured in this snapshot.