Class TransportUnitMessageListener


  • @Profile("ASYNCHRONOUS")
    @Component
    class TransportUnitMessageListener
    extends Object
    A TransportUnitMessageListener is a Spring managed RabbiMQ event listener that is interested in changes on TransportUnits.
    Author:
    Heiko Scherrer
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • mapper

        private final org.ameba.mapping.BeanMapper mapper
      • validator

        private final javax.validation.Validator validator
    • Constructor Detail

      • TransportUnitMessageListener

        TransportUnitMessageListener​(TransportUnitService service,
                                     org.ameba.mapping.BeanMapper mapper,
                                     javax.validation.Validator validator)
    • Method Detail

      • handle

        @Measured
        @RabbitListener(queues="${owms.events.common.tu.queue-name}")
        public void handle​(@Payload
                           org.openwms.common.transport.api.messages.TransportUnitMO mo,
                           @Header("amqp_receivedRoutingKey")
                           String routingKey)