@FunctionalInterface public interface PersistentStreamMessageSourceFactory
PersistentStreamMessageSource
.
This factory is used to construct message sources for persistent streams with specific configurations.
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)
Builds a new instance of
PersistentStreamMessageSource with the specified parameters. |
PersistentStreamMessageSource build(String name, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context, Configuration configuration)
PersistentStreamMessageSource
with the specified parameters.name
- The name of the persistent stream. This is used to identify the stream.persistentStreamProperties
- The properties of the persistent stream, containing configuration details.scheduler
- The ScheduledExecutorService
to be used for scheduling tasks related to
the message source.batchSize
- The number of events to be fetched in a single batch from the stream.context
- The context in which the persistent stream operates. This can be used to
differentiate streams in different environments or applications.PersistentStreamMessageSource
configured with the provided parameters.IllegalArgumentException
- If any of the required parameters are null or
invalid.AxonServerException
- If there's an issue connecting to or
configuring the Axon Server.Copyright © 2010–2024. All rights reserved.