Class ExtractionSequencingPolicy<T,K>

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

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

    • ExtractionSequencingPolicy

      public ExtractionSequencingPolicy(Class<T> payloadClass, Function<T,K> identifierExtractor)
      Creates a new instance of the ExtractionSequencingPolicy, which extracts the sequence identifier from the message payload of the given payloadClass using the given identifierExtractor.
      Parameters:
      payloadClass - The class of the supported payload.
      identifierExtractor - The function to extract the sequence identifier from the payload.
  • Method Details