In the AxonAutoConfiguration.java file there are many times where a builder to a component calls a messageMonitor
:
L224: .messageMonitor(configuration.messageMonitor(EventStore.class, "eventStore"))
L244: .messageMonitor(configuration.messageMonitor(EventStore.class, "eventStore"))
L372: .messageMonitor(axonConfiguration.messageMonitor(CommandBus.class, "commandBus"))
L385: .messageMonitor(axonConfiguration.messageMonitor(QueryBus.class, "queryBus"))
L398: .updateMessageMonitor(configuration.messageMonitor(QueryUpdateEmitter.class, "queryUpdateEmitter"))
I’m wondering if someone can please clarify (from a high level) what exactly a message monitor is and how it is used in the framework? What do the above calls to messageMonitor
achieve?
Thanks!