public class MultiMessageMonitor<T extends Message<?>> extends Object implements MessageMonitor<T>
MessageMonitor.MonitorCallback
Constructor and Description |
---|
MultiMessageMonitor(List<MessageMonitor<? super T>> messageMonitors)
Initialize a message monitor with the given list of
|
MultiMessageMonitor(MessageMonitor<? super T>... messageMonitors)
Initialize a message monitor with the given
|
Modifier and Type | Method and Description |
---|---|
MessageMonitor.MonitorCallback |
onMessageIngested(T message)
Calls the message monitors with the given message and returns a callback that will trigger all the message
monitor callbacks
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessagesIngested
@SafeVarargs public MultiMessageMonitor(MessageMonitor<? super T>... messageMonitors)
messageMonitors
- the list of event monitors to delegate topublic MultiMessageMonitor(List<MessageMonitor<? super T>> messageMonitors)
messageMonitors
- the list of event monitors to delegate topublic MessageMonitor.MonitorCallback onMessageIngested(@Nonnull T message)
onMessageIngested
in interface MessageMonitor<T extends Message<?>>
message
- the message to delegate to the message monitorsCopyright © 2010–2023. All rights reserved.