Package org.openwms.common.comm.osip.res
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 Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.web.client.RestTemplate
private final org.springframework.cloud.client.discovery.DiscoveryClient
private final InputContext
private static final org.slf4j.Logger
private final OwmsProperties
-
Constructor Summary
ConstructorDescriptionResSenderApi
(InputContext in, org.springframework.web.client.RestTemplate aLoadBalanced, org.springframework.cloud.client.discovery.DiscoveryClient dc, 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
in
-
aLoadBalanced
private final org.springframework.web.client.RestTemplate aLoadBalanced -
dc
private final org.springframework.cloud.client.discovery.DiscoveryClient dc -
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
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.- Specified by:
sendToLocation
in interfaceResponder
- Parameters:
barcode
- The TransportUnit's barcode can be setsourceLocation
- The source location can be settargetLocation
- The target location
-