public static class DefaultSagaManagerSpanFactory.Builder extends Object
DefaultSagaManagerSpanFactory
. The default values are:
sagaIdentifierAttribute
defaults to axon.sagaIdentifier
spanFactory
is a required field and should be provided.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultSagaManagerSpanFactory |
build()
Initializes a
DefaultSagaManagerSpanFactory as specified through this Builder. |
DefaultSagaManagerSpanFactory.Builder |
sagaIdentifierAttribute(String sagaIdentifierAttribute)
Sets the attribute name to use for the saga identifier.
|
DefaultSagaManagerSpanFactory.Builder |
spanFactory(SpanFactory spanFactory)
Sets the
SpanFactory to use to create the spans. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public DefaultSagaManagerSpanFactory.Builder spanFactory(SpanFactory spanFactory)
SpanFactory
to use to create the spans. This is a required field.spanFactory
- The SpanFactory
to use to create the spans.public DefaultSagaManagerSpanFactory.Builder sagaIdentifierAttribute(String sagaIdentifierAttribute)
axon.sagaIdentifier
.sagaIdentifierAttribute
- The attribute name to use for the saga identifier.protected void validate()
public DefaultSagaManagerSpanFactory build()
DefaultSagaManagerSpanFactory
as specified through this Builder.DefaultSagaManagerSpanFactory
as specified through this Builder.Copyright © 2010–2024. All rights reserved.