Class DefaultEventBusSpanFactory.Builder
java.lang.Object
org.axonframework.messaging.eventhandling.tracing.DefaultEventBusSpanFactory.Builder
- Enclosing class:
DefaultEventBusSpanFactory
Builder class to instantiate a
DefaultEventBusSpanFactory. The spanFactory is a required field
and should be provided.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultEventBusSpanFactoryas specified through this Builder.spanFactory(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
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.
-
validate
protected void validate()Validates whether the fields contained in this Builder are set accordingly. -
build
Initializes aDefaultEventBusSpanFactoryas specified through this Builder.- Returns:
- The
DefaultEventBusSpanFactoryas specified through this Builder.
-