Class EqualRevisionPredicate

java.lang.Object
org.axonframework.eventsourcing.eventstore.EqualRevisionPredicate
All Implemented Interfaces:
Predicate<DomainEventData<?>>

public class EqualRevisionPredicate extends Object implements 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 Details

    • EqualRevisionPredicate

      public EqualRevisionPredicate(RevisionResolver resolver, Serializer serializer)
      Initializes the Predicate with given resolver to resolve revision of the class represented by the serialized data.
      Parameters:
      resolver - Resolver of type RevisionResolver to resolve the revision of aggregate corresponding to the snapshot
      serializer - The serializer used to read the payload data, in order to resolve a class
  • Method Details