Class EqualRevisionPredicate
java.lang.Object
org.axonframework.eventsourcing.eventstore.EqualRevisionPredicate
- All Implemented Interfaces:
Predicate<DomainEventData<?>>
A predicate that matches against
DomainEventData instances that have a revision 'equal' to the
revision of the class is has serialized data for. The RevisionResolver is used to resolve the revision
of the Class represented by the DomainEventData.- Since:
- 3.3
- Author:
- Shyam Sankaran
-
Constructor Summary
ConstructorsConstructorDescriptionEqualRevisionPredicate(RevisionResolver resolver, Serializer serializer) Initializes the Predicate with givenresolverto resolve revision of the class represented by the serialized data. -
Method Summary
-
Constructor Details
-
EqualRevisionPredicate
Initializes the Predicate with givenresolverto resolve revision of the class represented by the serialized data.- Parameters:
resolver- Resolver of typeRevisionResolverto resolve the revision of aggregate corresponding to the snapshotserializer- The serializer used to read the payload data, in order to resolve a class
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<DomainEventData<?>>
-