public abstract static class AbstractEventBus.Builder extends Object
AbstractEventBus
implementations.
The MessageMonitor
is defaulted to an NoOpMessageMonitor
and the EventBusSpanFactory
defaults to a DefaultEventBusSpanFactory
backed by a NoOpSpanFactory
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AbstractEventBus.Builder |
messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor ingested EventMessage s. |
AbstractEventBus.Builder |
spanFactory(EventBusSpanFactory spanFactory)
Sets the
SpanFactory implementation to use for providing tracing capabilities. |
AbstractEventBus.Builder |
spanFactory(SpanFactory spanFactory)
Deprecated.
Please use
spanFactory(EventBusSpanFactory) which is more configurable |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public AbstractEventBus.Builder messageMonitor(@Nonnull MessageMonitor<? super EventMessage<?>> messageMonitor)
messageMonitor
- a MessageMonitor
to monitor ingested EventMessage
s@Deprecated public AbstractEventBus.Builder spanFactory(@Nonnull SpanFactory spanFactory)
spanFactory(EventBusSpanFactory)
which is more configurableSpanFactory
implementation to use for providing tracing capabilities. Defaults to a
NoOpSpanFactory
by default, which provides no tracing capabilities.spanFactory
- The SpanFactory
implementationpublic AbstractEventBus.Builder spanFactory(@Nonnull EventBusSpanFactory spanFactory)
SpanFactory
implementation to use for providing tracing capabilities. Defaults to a
DefaultEventBusSpanFactory
backed by a NoOpSpanFactory
by default, which provides no tracing capabilities.spanFactory
- The EventBusSpanFactory
implementationprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2024. All rights reserved.