Class AbstractAsynchronousEventServiceTest.PrecedingListener

  • 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.PrecedingListener
    extends AbstractEventListener<AbstractEvent>
    • Constructor Detail

      • PrecedingListener

        protected PrecedingListener()
    • Method Detail

      • 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)
      • setFilter

        public void setFilter​(java.util.function.Predicate<AbstractEvent> filter)
      • setConsumer

        public void setConsumer​(java.util.function.Consumer<AbstractEvent> consumer)