public class AxonServerEventStoreFactory extends Object
AxonServerEventStores.
 Especially useful to open a store towards a context differing from the default context. For example, whenever the application is required to publish "milestone-"/"integration-events" in a common context.
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
AxonServerEventStoreFactory.AxonServerEventStoreConfiguration
Contract defining  
AxonServerEventStore.Builder based configuration when constructing an
 AxonServerEventStore. | 
static class  | 
AxonServerEventStoreFactory.Builder
Builder class to instantiate an  
AxonServerEventStoreFactory. | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AxonServerEventStoreFactory(AxonServerEventStoreFactory.Builder builder)
Instantiate a  
AxonServerEventStoreFactory based on the fields contained in the AxonServerEventStoreFactory.Builder. | 
| Modifier and Type | Method and Description | 
|---|---|
static AxonServerEventStoreFactory.Builder | 
builder()
Instantiate a builder to construct an  
AxonServerEventStoreFactory. | 
AxonServerEventStore | 
constructFor(String context)
Constructs an  
AxonServerEventStore connected to the given context. | 
AxonServerEventStore | 
constructFor(String context,
            AxonServerEventStoreFactory.AxonServerEventStoreConfiguration configuration)
Constructs an  
AxonServerEventStore connected to the given context with customization based on the
 given configuration. | 
protected AxonServerEventStoreFactory(AxonServerEventStoreFactory.Builder builder)
AxonServerEventStoreFactory based on the fields contained in the AxonServerEventStoreFactory.Builder.
 
 Will assert that the AxonServerConfiguration, AxonServerConnectionManager, and
 SnapshotFilter are set. If not, an AxonConfigurationException will be thrown.
builder - The AxonServerEventStoreFactory.Builder used to instantiate a AxonServerEventStoreFactory instancepublic static AxonServerEventStoreFactory.Builder builder()
AxonServerEventStoreFactory.
 The following fields have sensible defaults:
snapshot serializer defaults to a XStreamSerializerevent serializer defaults to a XStreamSerializerupcaster chain defaults to a NoOpEventUpcastermessage monitor defaults to a NoOpMessageMonitorspan factory defaults to a DefaultEventBusSpanFactory using a NoOpSpanFactory.AxonServerConfiguration, AxonServerConnectionManager, and SnapshotFilter are hard
 requirements and as such should be provided.AxonServerEventStoreFactory.public AxonServerEventStore constructFor(@Nonnull String context)
AxonServerEventStore connected to the given context.
 
 The other required fields for an AxonServerEventStore are based on the components configured in this
 factory
context - The context to construct an AxonServerEventStore for.AxonServerEventStore connected to the given context.public AxonServerEventStore constructFor(@Nonnull String context, @Nonnull AxonServerEventStoreFactory.AxonServerEventStoreConfiguration configuration)
AxonServerEventStore connected to the given context with customization based on the
 given configuration.
 
 The other required fields for an AxonServerEventStore are based on the components configured in this
 factory
context - The context to construct an AxonServerEventStore for.configuration - The customization for the store under construction, deviating from the components set in the
                      AxonServerEventStoreFactory.Builder.AxonServerEventStore connected to the given context.Copyright © 2010–2025. All rights reserved.