Class MultiMessageMonitor<T extends Message>
java.lang.Object
org.axonframework.messaging.monitoring.MultiMessageMonitor<T>
- All Implemented Interfaces:
MessageMonitor<T>
Delegates messages and callbacks to the given list of message monitors
- Since:
- 3.0
- Author:
- Marijn van Zelst
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.axonframework.messaging.monitoring.MessageMonitor
MessageMonitor.MonitorCallback -
Constructor Summary
ConstructorsConstructorDescriptionMultiMessageMonitor(List<MessageMonitor<? super T>> messageMonitors) Initialize a message monitor with the given list ofmessageMonitors MultiMessageMonitor(MessageMonitor<? super T>... messageMonitors) Initialize a message monitor with the givenmessageMonitors -
Method Summary
Modifier and TypeMethodDescriptionList<MessageMonitor<? super T>> Inspect the contained message monitors.onMessageIngested(T message) Calls the message monitors with the given message and returns a callback that will trigger all the message monitor callbacksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.monitoring.MessageMonitor
onMessagesIngested
-
Constructor Details
-
MultiMessageMonitor
Initialize a message monitor with the givenmessageMonitors - Parameters:
messageMonitors- the list of event monitors to delegate to
-
MultiMessageMonitor
Initialize a message monitor with the given list ofmessageMonitors - Parameters:
messageMonitors- the list of event monitors to delegate to
-
-
Method Details
-
onMessageIngested
Calls the message monitors with the given message and returns a callback that will trigger all the message monitor callbacks- Specified by:
onMessageIngestedin interfaceMessageMonitor<T extends Message>- Parameters:
message- the message to delegate to the message monitors- Returns:
- the callback that will trigger all the message monitor callbacks
-
messageMonitors
Inspect the contained message monitors.- Returns:
- unmodifiable list of contained message monitors
-