Class DefaultQueryUpdateEmitterSpanFactory.Builder
java.lang.Object
org.axonframework.messaging.queryhandling.tracing.DefaultQueryUpdateEmitterSpanFactory.Builder
- Enclosing class:
DefaultQueryUpdateEmitterSpanFactory
Builder class to instantiate a
DefaultQueryUpdateEmitterSpanFactory. The spanFactory is a
required field and should be provided.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultQueryUpdateEmitterSpanFactoryas 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 aDefaultQueryUpdateEmitterSpanFactoryas specified through this Builder.- Returns:
- The
DefaultQueryUpdateEmitterSpanFactoryas specified through this Builder.
-