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 payloadK- the type of the extracted property
- All Implemented Interfaces:
SequencingPolicy<Message>
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 Summary
ConstructorsConstructorDescriptionPropertySequencingPolicy(Class<T> payloadClass, String propertyName) Creates a new instance of thePropertySequencingPolicy, which extracts the sequence identifier from the message payload of the givenpayloadClassusing the givenidentifierExtractor. -
Method Summary
Methods inherited from class org.axonframework.messaging.core.sequencing.ExtractionSequencingPolicy
sequenceIdentifierFor
-
Constructor Details
-
PropertySequencingPolicy
Creates a new instance of thePropertySequencingPolicy, which extracts the sequence identifier from the message payload of the givenpayloadClassusing the givenidentifierExtractor.- Parameters:
payloadClass- The class of the supported payload.propertyName- The name of the property to be extracted as sequence identifier.
-