Package org.openwms.common.tasks.events
Class TaskEventPropagator
java.lang.Object
org.openwms.common.tasks.events.TaskEventPropagator
A TaskEventPropagator.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
private static final org.slf4j.Logger
private final TaskMapper
-
Constructor Summary
ConstructorDescriptionTaskEventPropagator
(org.springframework.amqp.core.AmqpTemplate amqpTemplate, String exchangeName, TaskMapper mapper) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mapper
-
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
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)
-