Class AbstractAsynchronousEventServiceTest.TestEventQueueBasedListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
-
- de.hybris.platform.servicelayer.event.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 Summary
Constructors Constructor Description TestEventQueueBasedListener(int timeoutSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onEvent(AbstractEvent event)
This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.AbstractEvent
pollEvent()
void
setExpectedEventClass(java.lang.Class<? extends AbstractEvent> clazz)
void
setSourceFilter(java.util.function.Predicate<?> sourceFilter)
-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
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 byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.- Specified by:
onEvent
in classAbstractEventListener<AbstractEvent>
- Parameters:
event
- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
pollEvent
public AbstractEvent pollEvent()
-
setExpectedEventClass
public void setExpectedEventClass(java.lang.Class<? extends AbstractEvent> clazz)
-
-