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)
EventProcessingMonitoronEventProcessingCompleted in interface EventProcessingMonitoreventMessages - The messages that have been successfully processedpublic void onEventProcessingFailed(List<? extends EventMessage> eventMessages, Throwable cause)
EventProcessingMonitoronEventProcessingFailed in interface EventProcessingMonitoreventMessages - The message that failedcause - The cause of the failurepublic void subscribeEventProcessingMonitor(EventProcessingMonitor monitor)
EventProcessingMonitorSupportmonitor. If the monitor is already subscribed, nothing happens.subscribeEventProcessingMonitor in interface EventProcessingMonitorSupportmonitor - The monitor to subscribepublic void unsubscribeEventProcessingMonitor(EventProcessingMonitor monitor)
EventProcessingMonitorSupportmonitor. If the monitor was not subscribed, or was already unsubscribed,
nothing happens.unsubscribeEventProcessingMonitor in interface EventProcessingMonitorSupportmonitor - The monitor to unsubscribeCopyright © 2010-2014. All Rights Reserved.