public class PersistentStreamMessageSourceDefinition extends Object implements SubscribableMessageSourceDefinition<EventMessage<?>>
PersistentStreamMessageSource
.
Used to create PersistentStreamMessageSource
instances with a specific Axon
configuration
.
Constructor and Description |
---|
PersistentStreamMessageSourceDefinition(String name,
io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties,
ScheduledExecutorService scheduler,
int batchSize,
String context,
PersistentStreamMessageSourceFactory messageSourceFactory)
Instantiates a
PersistentStreamMessageSourceDefinition instance based on the given parameters. |
Modifier and Type | Method and Description |
---|---|
SubscribableMessageSource<EventMessage<?>> |
create(Configuration configuration)
Creates a
SubscribableMessageSource based on this definition and the provided configuration. |
public PersistentStreamMessageSourceDefinition(String name, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context, PersistentStreamMessageSourceFactory messageSourceFactory)
PersistentStreamMessageSourceDefinition
instance based on the given parameters.name
- The name of the persistent stream.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).public SubscribableMessageSource<EventMessage<?>> create(Configuration configuration)
SubscribableMessageSourceDefinition
SubscribableMessageSource
based on this definition and the provided configuration.create
in interface SubscribableMessageSourceDefinition<EventMessage<?>>
configuration
- The Axon Configuration
to base the SubscribableMessageSource
on.SubscribableMessageSource
based on this definition and the provided configuration.Copyright © 2010–2024. All rights reserved.