Class TransportUnitCommandPropagator
java.lang.Object
org.openwms.common.transport.commands.TransportUnitCommandPropagator
@Profile("ASYNCHRONOUS")
@RefreshScope
@Component
class TransportUnitCommandPropagator
extends Object
A TransportUnitCommandPropagator propagates
TUCommand
s send by this service
out to other services over an AMQP exchange.- 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 jakarta.validation.Validator
-
Constructor Summary
ConstructorDescriptionTransportUnitCommandPropagator
(org.springframework.amqp.core.AmqpTemplate amqpTemplate, jakarta.validation.Validator validator, String exchangeName) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
validator
private final jakarta.validation.Validator validator -
exchangeName
-
-
Constructor Details
-
TransportUnitCommandPropagator
TransportUnitCommandPropagator(org.springframework.amqp.core.AmqpTemplate amqpTemplate, jakarta.validation.Validator validator, @Value("${owms.commands.common.tu.exchange-name}") String exchangeName)
-
-
Method Details
-
onEvent
@Measured @TransactionalEventListener(fallbackExecution=true) @Transactional(propagation=REQUIRES_NEW) public void onEvent(TUCommand command)
-