Class AxonServerEventStore.Builder

Enclosing class:
AxonServerEventStore

public static class AxonServerEventStore.Builder extends AbstractEventStore.Builder
Builder class to instantiate a AxonServerEventStore.

The main goal of this Builder is to instantiate an AxonServer specific EventStorageEngine. The properties which may be provided through this Builder are thus all used to end up with that EventStorageEngine implementation. An EventStorageEngine may be provided directly however, although we encourage the usage of the configuration and axonServerConnectionManager functions to let it be created.

The EventUpcaster is defaulted to a NoOpEventUpcaster. The MessageMonitor is defaulted to an NoOpMessageMonitor and the EventBusSpanFactory defaults to a DefaultEventBusSpanFactory backed by a NoOpSpanFactory.

The event and snapshot Serializer, AxonServerConfiguration and AxonServerConnectionManager are hard requirements if no EventStorageEngine is provided directly.