public class PersistentStreamMessageSource extends Object implements org.axonframework.messaging.SubscribableMessageSource<org.axonframework.eventhandling.EventMessage<?>>
SubscribableMessageSource that receives event from a persistent stream from Axon Server.| Constructor and Description |
|---|
PersistentStreamMessageSource(String name,
org.axonframework.config.Configuration configuration,
io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties,
ScheduledExecutorService scheduler,
int batchSize)
Instantiates a
PersistentStreamMessageSource. |
PersistentStreamMessageSource(String name,
org.axonframework.config.Configuration configuration,
io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties,
ScheduledExecutorService scheduler,
int batchSize,
String context)
Instantiates a
PersistentStreamMessageSource. |
| Modifier and Type | Method and Description |
|---|---|
org.axonframework.common.Registration |
subscribe(Consumer<List<? extends org.axonframework.eventhandling.EventMessage<?>>> consumer) |
public PersistentStreamMessageSource(String name, org.axonframework.config.Configuration configuration, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize)
PersistentStreamMessageSource.name - The name of the event processor.configuration - Global configuration of Axon components.persistentStreamProperties - Properties for the persistent stream.scheduler - Scheduler thread pool to schedule tasks.batchSize - The batch size for collecting events.public PersistentStreamMessageSource(String name, org.axonframework.config.Configuration configuration, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context)
PersistentStreamMessageSource.name - The name of the event processor.configuration - Global configuration of Axon components.persistentStreamProperties - Properties for the persistent stream.scheduler - Scheduler thread pool to schedule tasks.batchSize - The batch size for collecting events.context - The context in which this persistent stream exists (or needs to be created).Copyright © 2010–2024. All rights reserved.