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 Details

    • in

      private final InputContext in
    • amqpTemplate

      private final org.springframework.amqp.core.AmqpTemplate amqpTemplate
    • exchangeName

      private final String exchangeName
    • owmsProperties

      private final OwmsProperties 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

      @Measured public void sendToLocation(String target)
      Send a message to the given target location. Send a message to fire a OSIP RES_ telegram to the given target location.
      Specified by:
      sendToLocation in interface Responder
      Parameters:
      target - The target location
    • sendToLocation

      @Measured public void sendToLocation(String barcode, String sourceLocation, String targetLocation)
      Send a message to the given target location. Send a message to fire a OSIP RES_ telegram to the given target location.
      Specified by:
      sendToLocation in interface Responder
      Parameters:
      barcode - The TransportUnit's barcode can be set
      sourceLocation - The source location can be set
      targetLocation - The target location