public class DefaultPersistentStreamMessageSourceFactory extends Object implements PersistentStreamMessageSourceFactory
PersistentStreamMessageSourceFactory that creates
PersistentStreamMessageSource instances. Maintains a record of used stream names and provides warning logs
when name conflicts occur.| Constructor and Description |
|---|
DefaultPersistentStreamMessageSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
PersistentStreamMessageSource |
build(String name,
io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties,
ScheduledExecutorService scheduler,
int batchSize,
String context,
Configuration configuration)
Creates a new
PersistentStreamMessageSource. |
public DefaultPersistentStreamMessageSourceFactory()
public PersistentStreamMessageSource build(String name, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context, Configuration configuration)
PersistentStreamMessageSource. This method tracks stream names and logs warnings when name
conflicts are detected.build in interface PersistentStreamMessageSourceFactoryname - The name of the persistent stream. It's a unique identifier of the
PersistentStream connection with Axon Sever. Usage of the same name
will overwrite the existing connection.persistentStreamProperties - The properties to create te persistent stream.scheduler - Scheduler used for persistent stream operations.batchSize - The batch size for collecting events.context - The context in which this persistent stream exists (or needs to be created).configuration - Global configuration of Axon components.PersistentStreamMessageSource instance.Copyright © 2010–2025. All rights reserved.