Class DefaultMessageMonitorRegistry

java.lang.Object
org.axonframework.messaging.monitoring.configuration.DefaultMessageMonitorRegistry
All Implemented Interfaces:
DescribableComponent, MessageMonitorRegistry

public class DefaultMessageMonitorRegistry extends Object implements MessageMonitorRegistry
The DefaultMessageMonitorRegistry is a default implementation of the MessageMonitorRegistry interface responsible for managing and providing components of MessageMonitor for various message types such as CommandMessage, EventMessage, and QueryMessage.

This class allows registering monitor builders for each message type and resolves those monitors into properly initialized components when required. If no custom monitors are registered for a specific type, default implementations like NoOpMessageMonitor are returned to ensure no operational interruptions.

Internally, it maintains separate lists of ComponentDefinition to store the registered monitor builders for command, event, and query messages. It also supports registering a generic MessageMonitor for Message, in which case a specialized MessageMonitor is created for each of the supported subtypes.

Since:
5.0.0
Author:
Jan Galinski