Class TestEventListenerCountingEvents<T extends AbstractEvent>

    • Constructor Detail

      • TestEventListenerCountingEvents

        public TestEventListenerCountingEvents()
    • Method Detail

      • onEvent

        protected void onEvent​(T event)
        Description copied from class: AbstractEventListener
        This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
        Specified by:
        onEvent in class AbstractEventListener<T extends AbstractEvent>
        Parameters:
        event - the event to be processed
        See Also:
        ApplicationListener.onApplicationEvent(ApplicationEvent)
      • getNumberOfEvents

        public int getNumberOfEvents()
        Returns:
        number of onEvent invocation since beginning or last resetCounter() invocation
      • resetCounter

        public void resetCounter()
        reset counter which store number of onEvent() invocations