Class TaskEventPropagator

java.lang.Object
org.openwms.common.tasks.events.TaskEventPropagator

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

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • mapper

      private final TaskMapper mapper
    • amqpTemplate

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

      private final String exchangeName
  • Constructor Details

    • TaskEventPropagator

      TaskEventPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, @Value("${owms.tasks.exchange-name}") String exchangeName, TaskMapper mapper)
  • Method Details

    • onEvent

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