Interface PersistentStreamEventSourceFactory

All Known Implementing Classes:
DefaultPersistentStreamEventSourceFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PersistentStreamEventSourceFactory
Factory for creating PersistentStreamEventSource instances.

Provides a customization point for PersistentStreamEventSource construction. The default implementation is DefaultPersistentStreamEventSourceFactory, which additionally tracks stream names and emits a warning when the same Axon Server stream name is used more than once.

In a Spring Boot application the factory is registered as a @ConditionalOnMissingBean, so advanced use cases (e.g. multi-tenancy) can replace it by declaring their own bean of this type.

Since:
5.2.0
Author:
Jakob Hatzl
See Also: