Class MessageSendingEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
de.hybris.platform.servicelayer.event.events.MessageSendingEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AbstractEvent>
- Direct Known Subclasses:
ExportMessageSendingEventListener
Listener for the event of class
eventClass. After event is received MessageSendingEventListener will
send it into channel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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(Class<? extends AbstractEvent> eventClass) voidsetTimeout(Long timeout) Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
MessageSendingEventListener
public MessageSendingEventListener()
-
-
Method Details
-
onEvent
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
-
setTimeout
-
setChannel
public void setChannel(org.springframework.messaging.MessageChannel channel) -
setEventClass
-