public static class DefaultCommandBusSpanFactory.Builder extends Object
DefaultCommandBusSpanFactory
. The default values are:
distributedCommandInSameTrace
defaults to true
spanFactory
is a required field and should be provided.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultCommandBusSpanFactory |
build()
Initializes a
DefaultCommandBusSpanFactory as specified through this Builder. |
DefaultCommandBusSpanFactory.Builder |
distributedInSameTrace(boolean distributedInSameTrace)
Sets whether the
CommandMessage s should be handled in the same trace as the dispatching span. |
DefaultCommandBusSpanFactory.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 DefaultCommandBusSpanFactory.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 DefaultCommandBusSpanFactory.Builder distributedInSameTrace(boolean distributedInSameTrace)
CommandMessage
s should be handled in the same trace as the dispatching span.distributedInSameTrace
- whether the CommandsMessages
should be handled in the same trace as the
dispatching span.protected void validate()
public DefaultCommandBusSpanFactory build()
DefaultCommandBusSpanFactory
as specified through this Builder.DefaultCommandBusSpanFactory
as specified through this Builder.Copyright © 2010–2024. All rights reserved.