public class EventProcessingMonitorCollection extends Object implements EventProcessingMonitor, EventProcessingMonitorSupport
Constructor and Description |
---|
EventProcessingMonitorCollection() |
Modifier and Type | Method and Description |
---|---|
void |
onEventProcessingCompleted(List<? extends EventMessage> eventMessages)
Invoked when one or more events have been successfully processed by the instance it was subscribed to.
|
void |
onEventProcessingFailed(List<? extends EventMessage> eventMessages,
Throwable cause)
Invoked when one or more events have failed processing by the instance it was subscribed to.
|
void |
subscribeEventProcessingMonitor(EventProcessingMonitor monitor)
Subscribes the given
monitor . |
void |
unsubscribeEventProcessingMonitor(EventProcessingMonitor monitor)
Unsubscribed the given
monitor . |
public void onEventProcessingCompleted(List<? extends EventMessage> eventMessages)
EventProcessingMonitor
onEventProcessingCompleted
in interface EventProcessingMonitor
eventMessages
- The messages that have been successfully processedpublic void onEventProcessingFailed(List<? extends EventMessage> eventMessages, Throwable cause)
EventProcessingMonitor
onEventProcessingFailed
in interface EventProcessingMonitor
eventMessages
- The message that failedcause
- The cause of the failurepublic void subscribeEventProcessingMonitor(EventProcessingMonitor monitor)
EventProcessingMonitorSupport
monitor
. If the monitor is already subscribed, nothing happens.subscribeEventProcessingMonitor
in interface EventProcessingMonitorSupport
monitor
- The monitor to subscribepublic void unsubscribeEventProcessingMonitor(EventProcessingMonitor monitor)
EventProcessingMonitorSupport
monitor
. If the monitor was not subscribed, or was already unsubscribed,
nothing happens.unsubscribeEventProcessingMonitor
in interface EventProcessingMonitorSupport
monitor
- The monitor to unsubscribeCopyright © 2010-2014. All Rights Reserved.