Class PropertySequencingPolicy<T,K>

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

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

    • PropertySequencingPolicy

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