Class AbstractAsynchronousEventServiceTest.TestEventQueueBasedListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<AbstractEvent>
    Enclosing class:
    AbstractAsynchronousEventServiceTest

    protected static class AbstractAsynchronousEventServiceTest.TestEventQueueBasedListener
    extends AbstractEventListener<AbstractEvent>
    • Constructor Detail

      • TestEventQueueBasedListener

        public TestEventQueueBasedListener​(int timeoutSeconds)
    • Method Detail

      • setSourceFilter

        public void setSourceFilter​(java.util.function.Predicate<?> sourceFilter)
      • onEvent

        protected void onEvent​(AbstractEvent 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<AbstractEvent>
        Parameters:
        event - the event to be processed
        See Also:
        ApplicationListener.onApplicationEvent(ApplicationEvent)
      • setExpectedEventClass

        public void setExpectedEventClass​(java.lang.Class<? extends AbstractEvent> clazz)