Package org.openwms.tms.impl.state
Class AmqpStartRequestForwarder
java.lang.Object
org.openwms.tms.impl.state.AmqpStartRequestForwarder
- All Implemented Interfaces:
ExternalStarter
@Profile("ASYNCHRONOUS")
@Component
class AmqpStartRequestForwarder
extends Object
implements ExternalStarter
An AmqpStartRequestForwarder requests a remote service instance via an AMQP command whether a TransportOrder might be started or not.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
-
Constructor Summary
ConstructorDescriptionAmqpStartRequestForwarder
(String exchangeName, org.springframework.amqp.core.AmqpTemplate amqpTemplate) -
Method Summary
-
Field Details
-
exchangeName
-
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
-
-
Constructor Details
-
AmqpStartRequestForwarder
AmqpStartRequestForwarder(@Value("${owms.requests.tms.to.exchange-name}") String exchangeName, org.springframework.amqp.core.AmqpTemplate amqpTemplate)
-
-
Method Details
-
request
Request to start aTransportOrder
.- Specified by:
request
in interfaceExternalStarter
- Parameters:
pKey
- The persistent key of the TransportOrder.
-