Class ExtractionSequencingPolicy<T,K>

java.lang.Object
org.axonframework.messaging.eventhandling.sequencing.ExtractionSequencingPolicy<T,K>
Type Parameters:
T - The type of the supported event payloads.
K - The type of the extracted property.
All Implemented Interfaces:
SequencingPolicy
Direct Known Subclasses:
PropertySequencingPolicy

public class ExtractionSequencingPolicy<T,K> extends Object implements SequencingPolicy
A SequencingPolicy implementation that extracts the sequence identifier from the event message payload based on a given property extractor.
Since:
5.0.0
Author:
Mateusz Nowak, Nils Christian Ehmke
  • Constructor Details

    • ExtractionSequencingPolicy

      public ExtractionSequencingPolicy(@Nonnull Class<T> payloadClass, @Nonnull Function<T,K> identifierExtractor)
      Creates a new instance of the ExtractionSequencingPolicy, which extracts the sequence identifier from the event message payload of the given payloadClass using the given identifierExtractor.
      Parameters:
      payloadClass - The class of the supported event payloads.
      identifierExtractor - The function to extract the sequence identifier from the event payload.
      eventConverter - The converter to use to convert event messages if their payload is not of the expected type.
  • Method Details