protected static class AbstractAsynchronousEventServiceTest.TestEventQueueBasedListener extends AbstractEventListener<AbstractEvent>
| Constructor and Description |
|---|
TestEventQueueBasedListener(int timeoutSeconds) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onEvent(AbstractEvent event)
This method is called by
AbstractEventListener#onApplicationEvent(ApplicationEvent) and processes the
given event. |
AbstractEvent |
pollEvent() |
void |
setExpectedEventClass(Class<? extends AbstractEvent> clazz) |
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantServicepublic TestEventQueueBasedListener(int timeoutSeconds)
protected void onEvent(AbstractEvent event)
AbstractEventListenerAbstractEventListener#onApplicationEvent(ApplicationEvent) and processes the
given event.onEvent in class AbstractEventListener<AbstractEvent>event - the event to be processed#onApplicationEvent(ApplicationEvent)public AbstractEvent pollEvent()
public void setExpectedEventClass(Class<? extends AbstractEvent> clazz)
Copyright © 2017 SAP SE. All Rights Reserved.