Class TransportUnitEventPropagator

java.lang.Object
org.openwms.common.transport.events.TransportUnitEventPropagator

@Profile("ASYNCHRONOUS") @RefreshScope @Component class TransportUnitEventPropagator extends Object
A TransportUnitEventPropagator.
Author:
Heiko Scherrer
  • Field Details

    • amqpTemplate

      private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
    • exchangeName

      private final String exchangeName
    • mapper

      private final TransportUnitMapper mapper
  • Constructor Details

    • TransportUnitEventPropagator

      TransportUnitEventPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, @Value("${owms.events.common.tu.exchange-name}") String exchangeName, TransportUnitMapper mapper)
  • Method Details

    • onEvent

      @Measured @TransactionalEventListener(fallbackExecution=true) @Transactional(propagation=REQUIRES_NEW) public void onEvent(TransportUnitEvent event)