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