Package org.openwms.wms.movements.impl
Class MovementEventPropagator
java.lang.Object
org.openwms.wms.movements.impl.MovementEventPropagator
A MovementEventPropagator is active with the "ASYNCHRONOUS" profile and propagates internal events to the
outer world over AMQP protocol.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
private static final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionMovementEventPropagator
(String exchangeName, org.springframework.amqp.core.AmqpTemplate amqpTemplate) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
exchangeName
-
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
-
-
Constructor Details
-
MovementEventPropagator
MovementEventPropagator(@Value("${owms.movements.exchange-name}") String exchangeName, org.springframework.amqp.core.AmqpTemplate amqpTemplate)
-
-
Method Details
-
onEvent
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW) public void onEvent(MovementEvent event)
-