Class PropertySequencingPolicy<T,K>

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

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

    • PropertySequencingPolicy

      public PropertySequencingPolicy(@Nonnull Class<T> payloadClass, @Nonnull String propertyName)
      Creates a new instance of the PropertySequencingPolicy, 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.
      propertyName - The name of the property to be extracted as sequence identifier.