Hello !
I need help configuring the Filtering of AggregateSnapshot
events persisted to the appropriate Event Store as described here AbstractSnapshotEventEntry (Axon Framework 4.6.1 API)
Which implementation that implements Interface DomainEventData<T>
is the one for me to go for? What other config decisions could influence which one is the right implementation o DomainEventData<T>
for me?
https://apidocs.axoniq.io/4.6/org/axonframework/eventhandling/DomainEventData.html
Here is the code example from the corresponding docs page
SnapshotFilter giftCardSnapshotFilter = snapshotData -> /* allow or disallow this snapshotData */;
AggregateConfigurer<GiftCard> giftCardConfigurer =
AggregateConfigurer.defaultConfiguration(GiftCard.class)
.configureSnapshotFilter(config -> giftCardSnapshotFilter);
Configurer configurer = DefaultConfigurer.defaultConfiguration()
.configureAggregate(giftCardConfigurer);
First, I guess I have to use RevisionSnapshotFilter (Axon Framework 4.6.1 API)
and AbstractSnapshotEventEntry (Axon Framework 4.6.1 API)
SnapshotFilter giftCardSnapshotFilter = new RevisionSnapshotFilter.build().nowWhat(AbstractSnapshotEventEntry<GiftCard> arg)?
- What is
T
in this case? The name of the Aggregate?
Thanks for your advice !
Yours sincerely,
ĂĽberSpotz
This post concerns Axon 4.6