Interface PersistentStreamEventSourceFactory

All Known Implementing Classes:
DefaultPersistentStreamEventSourceFactory, MultiTenantPersistentStreamEventSourceFactory
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 the SubscribableEventSource that consumes a persistent stream on Axon Server.

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

In a Spring Boot application the default factory is registered as a @ConditionalOnMissingBean, so advanced use cases can replace it by declaring their own bean of this type.

Since:
5.2.0
Author:
Jakob Hatzl
See Also: