Class MetadataSequencingPolicy

java.lang.Object
org.axonframework.messaging.core.sequencing.MetadataSequencingPolicy
All Implemented Interfaces:
SequencingPolicy<Message>

public class MetadataSequencingPolicy extends Object implements SequencingPolicy<Message>
A SequencingPolicy implementation that extracts the sequence identifier from the Message'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