Class SubscribingEventProcessorModule

java.lang.Object
org.axonframework.common.configuration.BaseModule<SubscribingEventProcessorModule>
org.axonframework.messaging.eventhandling.processing.subscribing.SubscribingEventProcessorModule
All Implemented Interfaces:
Module, ModuleBuilder<SubscribingEventProcessorModule>, EventProcessorModule, EventProcessorModule.CustomizationPhase<SubscribingEventProcessorModule,SubscribingEventProcessorConfiguration>, EventProcessorModule.EventHandlingPhase<SubscribingEventProcessorModule,SubscribingEventProcessorConfiguration>

A configuration module for configuring and registering a single SubscribingEventProcessor component.

The main capabilities provided by this module include:

  • Event handling component decoration with tracing, monitoring, and interception
  • Integration with shared configuration customizations from parent modules
  • Lifecycle management for the created processor
  • Automatic subscription to the configured message source

This module is typically not instantiated directly but created through EventProcessorModule.subscribing(String) or registered via SubscribingEventProcessorsConfigurer.defaultProcessor(java.lang.String, java.util.function.Function<org.axonframework.messaging.eventhandling.configuration.EventHandlingComponentsConfigurer.RequiredComponentPhase, org.axonframework.messaging.eventhandling.configuration.EventHandlingComponentsConfigurer.CompletePhase>) methods.

The module applies shared defaults from SubscribingEventProcessorsConfigurer and EventProcessingConfigurer before applying processor-specific customizations.

Since:
5.0.0
Author:
Mateusz Nowak