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

public class MessageSendingEventListener extends AbstractEventListener<AbstractEvent>
Listener for the event of class eventClass. After event is received MessageSendingEventListener will send it into channel.
  • Constructor Details

    • MessageSendingEventListener

      public MessageSendingEventListener()
  • Method Details

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

      protected void send(AbstractEvent event)
    • setTimeout

      public void setTimeout(Long timeout)
    • setChannel

      public void setChannel(org.springframework.messaging.MessageChannel channel)
    • setEventClass

      public void setEventClass(Class<? extends AbstractEvent> eventClass)