Class MetadataSequencingPolicy

java.lang.Object
org.axonframework.messaging.eventhandling.sequencing.MetadataSequencingPolicy
All Implemented Interfaces:
SequencingPolicy

public class MetadataSequencingPolicy extends Object implements SequencingPolicy
A SequencingPolicy implementation that extracts the sequence identifier from the EventMessage's Metadata, based on a given metadataKey. In the absence of the given metadataKey on the Metadata, the Optional.empty() is returned.
Since:
4.6.0
Author:
Lucas Campos