Interface MessageMonitorRegistry

All Superinterfaces:
DescribableComponent
All Known Implementing Classes:
DefaultMessageMonitorRegistry

@Internal public interface MessageMonitorRegistry extends DescribableComponent
A registry of MessageMonitors, acting as a collection of registered MessageMonitor components.

Provides operations to register generic Message, CommandMessage-specific, EventMessage-specific, or QueryMessage-specific MessageMonitors. Multiple MessageMonitors will be combined to a single MultiMessageMonitor.

Ingesting and reporting of messages is done via monitoring interception which wrap the monitor. These interception are registered through the MessagingConfigurationDefaults dispatcher registry factory methods.

These operations are expected to be invoked within a DecoratorDefinition. As such, any registered monitors are only applied when the infrastructure component requiring them is constructed. When, for example, an InterceptingCommandBus is constructed, this registry is invoked to retrieve monitors. Interceptors that are registered once the InterceptingCommandBus has already been constructed are not taken into account.

Since:
5.0.0
Author:
Jan Galinski