Package org.axonframework.modelling.saga
Class DefaultSagaManagerSpanFactory.Builder
java.lang.Object
org.axonframework.modelling.saga.DefaultSagaManagerSpanFactory.Builder
- Enclosing class:
- DefaultSagaManagerSpanFactory
Builder class to instantiate a
DefaultSagaManagerSpanFactory. The default values are:
sagaIdentifierAttributedefaults toaxon.sagaIdentifier
spanFactory is a required field and should be provided.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultSagaManagerSpanFactoryas specified through this Builder.sagaIdentifierAttribute(String sagaIdentifierAttribute) Sets the attribute name to use for the saga identifier.spanFactory(org.axonframework.tracing.SpanFactory spanFactory) Sets theSpanFactoryto use to create the spans.protected voidvalidate()Validates whether the fields contained in this Builder are set accordingly.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spanFactory
public DefaultSagaManagerSpanFactory.Builder spanFactory(org.axonframework.tracing.SpanFactory spanFactory) Sets theSpanFactoryto use to create the spans. This is a required field.- Parameters:
spanFactory- TheSpanFactoryto 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 toaxon.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 aDefaultSagaManagerSpanFactoryas specified through this Builder.- Returns:
- The
DefaultSagaManagerSpanFactoryas specified through this Builder.
-