Class ResSenderApi

java.lang.Object
org.openwms.common.comm.osip.res.ResSenderApi
All Implemented Interfaces:
Responder

@Profile("!ASYNCHRONOUS") @OSIP @Service("responder") class ResSenderApi extends Object implements Responder
A ResSenderApi.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • in

      private final InputContext in
    • aLoadBalanced

      private final org.springframework.web.client.RestTemplate aLoadBalanced
    • dc

      private final org.springframework.cloud.client.discovery.DiscoveryClient dc
    • owmsProperties

      private final OwmsProperties owmsProperties
  • Constructor Details

    • ResSenderApi

      public ResSenderApi(InputContext in, org.springframework.web.client.RestTemplate aLoadBalanced, org.springframework.cloud.client.discovery.DiscoveryClient dc, 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

      public void sendToLocation(String barcode, String sourceLocation, String targetLocation)
      Send a message 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