Package org.axonframework.deadline
Class DefaultDeadlineManagerSpanFactory.Builder
java.lang.Object
org.axonframework.deadline.DefaultDeadlineManagerSpanFactory.Builder
- Enclosing class:
DefaultDeadlineManagerSpanFactory
Builder class to instantiate a
DefaultDeadlineManagerSpanFactory. The spanFactory is a required
field and should be provided.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultDeadlineManagerSpanFactoryas specified through this Builder.deadlineIdAttribute(String deadlineIdAttribute) Sets the attribute key to use for the deadline id.scopeAttribute(String scopeAttribute) Sets the attribute key to use for the deadline scope.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.
-
deadlineIdAttribute
Sets the attribute key to use for the deadline id. Defaults toaxon.deadlineId.- Parameters:
deadlineIdAttribute- The attribute key to use for the deadline id.- Returns:
- The current Builder instance, for fluent interfacing.
-
scopeAttribute
Sets the attribute key to use for the deadline scope. Defaults toaxon.deadlineScope.- Parameters:
scopeAttribute- The attribute key to use for the deadline scope.- 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 aDefaultDeadlineManagerSpanFactoryas specified through this Builder.- Returns:
- The
DefaultDeadlineManagerSpanFactoryas specified through this Builder.
-