public static class DefaultRepositorySpanFactory.Builder extends Object
DefaultRepositorySpanFactory. The default values are:
aggregateIdAttribute defaults to axon.aggregateIdspanFactory is a required field and should be provided.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DefaultRepositorySpanFactory.Builder |
aggregateIdAttribute(String aggregateIdAttribute)
Sets the attribute name to use for the aggregate id.
|
DefaultRepositorySpanFactory |
build()
Initializes a
DefaultRepositorySpanFactory as specified through this Builder. |
DefaultRepositorySpanFactory.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 DefaultRepositorySpanFactory.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 DefaultRepositorySpanFactory.Builder aggregateIdAttribute(String aggregateIdAttribute)
axon.aggregateId.aggregateIdAttribute - The attribute name to use for the aggregate id.protected void validate()
public DefaultRepositorySpanFactory build()
DefaultRepositorySpanFactory as specified through this Builder.DefaultRepositorySpanFactory as specified through this Builder.Copyright © 2010–2025. All rights reserved.