org.axonframework.eventhandling
Interface EventProcessingMonitor

All Known Implementing Classes:
EventProcessingMonitorCollection, MultiplexingEventProcessingMonitor

public interface EventProcessingMonitor

Interface describing a mechanism that listens for the results of events being processed. When subscribed to an object implementing EventProcessingMonitorSupport, the monitor will be notified when events have been processed.

Since:
2.1
Author:
Allard Buijze

Method Summary
 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.
 

Method Detail

onEventProcessingCompleted

void onEventProcessingCompleted(List<? extends EventMessage> eventMessages)
Invoked when one or more events have been successfully processed by the instance it was subscribed to.

Parameters:
eventMessages - The messages that have been successfully processed

onEventProcessingFailed

void onEventProcessingFailed(List<? extends EventMessage> eventMessages,
                             Throwable cause)
Invoked when one or more events have failed processing by the instance it was subscribed to.

Parameters:
eventMessages - The message that failed
cause - The cause of the failure


Copyright © 2010-2016. All Rights Reserved.