public abstract static class AbstractEventStore.Builder extends AbstractEventBus.Builder
AbstractEventStore
.
The MessageMonitor
is defaulted to an NoOpMessageMonitor
and the
EventBusSpanFactory
defaults to a
DefaultEventBusSpanFactory
backed by a NoOpSpanFactory
. The
EventStorageEngine
is a
hard requirement and as such should be provided.
Modifier and Type | Field and Description |
---|---|
protected EventStorageEngine |
storageEngine |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AbstractEventStore.Builder |
messageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Sets the
MessageMonitor to monitor ingested EventMessage s. |
AbstractEventStore.Builder |
storageEngine(EventStorageEngine storageEngine)
Sets the
EventStorageEngine used to store and load events. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
spanFactory, spanFactory
protected EventStorageEngine storageEngine
public AbstractEventStore.Builder messageMonitor(@Nonnull MessageMonitor<? super EventMessage<?>> messageMonitor)
AbstractEventBus.Builder
messageMonitor
in class AbstractEventBus.Builder
messageMonitor
- a MessageMonitor
to monitor ingested EventMessage
spublic AbstractEventStore.Builder storageEngine(EventStorageEngine storageEngine)
EventStorageEngine
used to store and load events.storageEngine
- the EventStorageEngine
used to store and load eventsprotected 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.