Class MessageSendingEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
-
- de.hybris.platform.servicelayer.event.events.MessageSendingEventListener
-
- 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>
- Direct Known Subclasses:
ExportMessageSendingEventListener
public class MessageSendingEventListener extends AbstractEventListener<AbstractEvent>
Listener for the event of classeventClass. After event is receivedMessageSendingEventListenerwill send it intochannel.
-
-
Constructor Summary
Constructors Constructor Description MessageSendingEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonEvent(AbstractEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.protected voidsend(AbstractEvent event)voidsetChannel(org.springframework.messaging.MessageChannel channel)voidsetEventClass(java.lang.Class<? extends AbstractEvent> eventClass)voidsetTimeout(java.lang.Long timeout)-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(AbstractEvent event)
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AbstractEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
send
protected void send(AbstractEvent event)
-
setTimeout
public void setTimeout(java.lang.Long timeout)
-
setChannel
public void setChannel(org.springframework.messaging.MessageChannel channel)
-
setEventClass
public void setEventClass(java.lang.Class<? extends AbstractEvent> eventClass)
-
-