Package org.openwms.common.comm.osip.res
Class AmqpResponder
java.lang.Object
org.openwms.common.comm.osip.res.AmqpResponder
- All Implemented Interfaces:
Responder
@Profile("ASYNCHRONOUS")
@OSIP
@Service("responder")
class AmqpResponder
extends Object
implements Responder
A AmqpResponder.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.amqp.core.AmqpTemplate
private final String
private final InputContext
private final OwmsProperties
-
Constructor Summary
ConstructorDescriptionAmqpResponder
(InputContext in, org.springframework.amqp.core.AmqpTemplate amqpTemplate, String exchangeName, OwmsProperties owmsProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendToLocation
(String target) Send a message to the giventarget
location.void
sendToLocation
(String barcode, String sourceLocation, String targetLocation) Send a message to the giventarget
location.
-
Field Details
-
in
-
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
exchangeName
-
owmsProperties
-
-
Constructor Details
-
AmqpResponder
AmqpResponder(InputContext in, org.springframework.amqp.core.AmqpTemplate amqpTemplate, @Value("${owms.driver.osip.res.exchange-name}") String exchangeName, OwmsProperties owmsProperties)
-
-
Method Details
-
sendToLocation
Send a message to the giventarget
location. Send a message to fire a OSIP RES_ telegram to the giventarget
location.- Specified by:
sendToLocation
in interfaceResponder
- Parameters:
target
- The target location
-
sendToLocation
Send a message to the giventarget
location. Send a message to fire a OSIP RES_ telegram to the giventarget
location.- Specified by:
sendToLocation
in interfaceResponder
- Parameters:
barcode
- The TransportUnit's barcode can be setsourceLocation
- The source location can be settargetLocation
- The target location
-