Class DefaultSagaManagerSpanFactory.Builder

java.lang.Object
org.axonframework.modelling.saga.DefaultSagaManagerSpanFactory.Builder
Enclosing class:
DefaultSagaManagerSpanFactory

public static class DefaultSagaManagerSpanFactory.Builder extends Object
Builder class to instantiate a DefaultSagaManagerSpanFactory. The default values are:
  • sagaIdentifierAttribute defaults to axon.sagaIdentifier
The spanFactory is a required field and should be provided.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • spanFactory

      public DefaultSagaManagerSpanFactory.Builder spanFactory(org.axonframework.tracing.SpanFactory spanFactory)
      Sets the SpanFactory to use to create the spans. This is a required field.
      Parameters:
      spanFactory - The SpanFactory to use to create the spans.
      Returns:
      The current Builder instance, for fluent interfacing.
    • sagaIdentifierAttribute

      public DefaultSagaManagerSpanFactory.Builder sagaIdentifierAttribute(String sagaIdentifierAttribute)
      Sets the attribute name to use for the saga identifier. Defaults to axon.sagaIdentifier.
      Parameters:
      sagaIdentifierAttribute - The attribute name to use for the saga identifier.
      Returns:
      The current Builder instance, for fluent interfacing.
    • validate

      protected void validate()
      Validates whether the fields contained in this Builder are set accordingly.
    • build

      Initializes a DefaultSagaManagerSpanFactory as specified through this Builder.
      Returns:
      The DefaultSagaManagerSpanFactory as specified through this Builder.