Commit d9fa063
committed
📸 chore: Creature Recruitment | Add snapshotting to Dwelling aggregate with 5-event threshold
The Dwelling aggregate is now configured to use the existing dwellingSnapshotTrigger bean
to create snapshots every 5 events. It's just to show how the snapshotting can be configured.1 parent f344304 commit d9fa063
2 files changed
Lines changed: 9 additions & 1 deletion
File tree
- src/main/java/com/dddheroes/heroesofddd/creaturerecruitment
- write
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments