Class MetaDataSequencingPolicy.Builder

java.lang.Object
org.axonframework.eventhandling.async.MetaDataSequencingPolicy.Builder
Enclosing class:
MetaDataSequencingPolicy

public static class MetaDataSequencingPolicy.Builder extends Object
Builder class to instantiate a MetaDataSequencingPolicy.

The following fields of this builder are hard requirements and as such should be provided:

  • The metaDataKey key to be used as a lookup for the property to be used as the Sequence Policy.
  • Method Details

    • metaDataKey

      public MetaDataSequencingPolicy.Builder metaDataKey(String metaDataKey)
      Defines the metaDataKey key to be used as a lookup for the property to be used as the Sequence Policy.
      Parameters:
      metaDataKey - Key to be used as a lookup for the property to be used as the Sequence Policy.
      Returns:
      The current Builder instance, for fluent interfacing.
    • build

      public MetaDataSequencingPolicy build()
      Initializes a MetaDataSequencingPolicy as specified through this Builder.
      Returns:
      A MetaDataSequencingPolicy as specified through this Builder.
    • validate

      protected void validate()