Thomas Vachuska
Committed by Gerrit Code Review

Reseting lastStart timestamp on listener ejection and sink notification.

Change-Id: Id13c8517fb4eca84a34ead168055328c236d090b
......@@ -84,6 +84,7 @@ public class ListenerRegistry<E extends Event, L extends EventListener<E>>
lastListener.getClass().getName(),
System.currentTimeMillis() - lastStart);
removeListener(lastListener);
lastStart = 0;
}
}
......
......@@ -155,6 +155,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry
public void run() {
long delta = System.currentTimeMillis() - lastStart;
if (lastStart > 0 && delta > maxProcessMillis) {
lastStart = 0;
log.error("Event sink {} exceeded execution time limit: {} ms",
lastSink.getClass().getName(), delta);
......