public abstract static class AbstractEventStore.Builder extends AbstractEventBus.Builder
AbstractEventStore.
The MessageMonitor is defaulted to an NoOpMessageMonitor and the SpanFactory defaults to
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 EventMessages. |
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.
|
spanFactoryprotected EventStorageEngine storageEngine
public AbstractEventStore.Builder messageMonitor(@Nonnull MessageMonitor<? super EventMessage<?>> messageMonitor)
AbstractEventBus.BuildermessageMonitor in class AbstractEventBus.BuildermessageMonitor - a MessageMonitor to monitor ingested EventMessagespublic 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.BuilderAxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2023. All rights reserved.