Class PersistentStreamMessageSourceDefinition
java.lang.Object
org.axonframework.axonserver.connector.event.axon.PersistentStreamMessageSourceDefinition
- All Implemented Interfaces:
SubscribableMessageSourceDefinition<EventMessage<?>>
public class PersistentStreamMessageSourceDefinition
extends Object
implements SubscribableMessageSourceDefinition<EventMessage<?>>
Definition of a
PersistentStreamMessageSource.
Used to create PersistentStreamMessageSource instances with a specific Axon
configuration.
- Since:
- 4.10.0
- Author:
- Marc Gathier
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentStreamMessageSourceDefinition(String name, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context, PersistentStreamMessageSourceFactory messageSourceFactory) Instantiates aPersistentStreamMessageSourceDefinitioninstance based on the given parameters. -
Method Summary
Modifier and TypeMethodDescriptioncreate(Configuration configuration) Creates aSubscribableMessageSourcebased on this definition and the provided configuration.
-
Constructor Details
-
PersistentStreamMessageSourceDefinition
public PersistentStreamMessageSourceDefinition(String name, io.axoniq.axonserver.connector.event.PersistentStreamProperties persistentStreamProperties, ScheduledExecutorService scheduler, int batchSize, String context, PersistentStreamMessageSourceFactory messageSourceFactory) Instantiates aPersistentStreamMessageSourceDefinitioninstance based on the given parameters.- Parameters:
name- The name of the persistent stream. It's a unique identifier of thePersistentStreamconnection 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).
-
-
Method Details
-
create
Description copied from interface:SubscribableMessageSourceDefinitionCreates aSubscribableMessageSourcebased on this definition and the provided configuration.- Specified by:
createin interfaceSubscribableMessageSourceDefinition<EventMessage<?>>- Parameters:
configuration- The AxonConfigurationto base theSubscribableMessageSourceon.- Returns:
- A
SubscribableMessageSourcebased on this definition and the provided configuration.
-