Class InventoryEventListener


  • @Profile("ASYNCHRONOUS")
    @Component
    public class InventoryEventListener
    extends Object
    A InventoryEventListener.
    Author:
    Heiko Scherrer
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • publisher

        private final org.springframework.context.ApplicationEventPublisher publisher
      • mapper

        private final org.ameba.mapping.BeanMapper mapper
    • Constructor Detail

      • InventoryEventListener

        public InventoryEventListener​(org.springframework.context.ApplicationEventPublisher publisher,
                                      org.ameba.mapping.BeanMapper mapper)
    • Method Detail

      • handle

        @Measured
        @RabbitListener(queues="${owms.events.inventory.products.queue-name}")
        void handle​(ProductMO msg,
                    @Header("owms_event_type")
                    String header)