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