Class AsyncTransportUnitApiImpl
- java.lang.Object
-
- org.openwms.wms.receiving.transport.impl.AsyncTransportUnitApiImpl
-
- All Implemented Interfaces:
AsyncTransportUnitApi
@Component class AsyncTransportUnitApiImpl extends Object implements AsyncTransportUnitApi
A AsyncTransportUnitApiImpl is a Spring managed bean to send Commands asynchronously over AMQP, only active with Spring profile SpringProfiles.ASYNCHRONOUS_PROFILE.- Author:
- Heiko Scherrer
-
-
Field Summary
Fields Modifier and Type Field Description private String
exchangeName
private org.springframework.amqp.core.AmqpTemplate
template
-
Constructor Summary
Constructors Constructor Description AsyncTransportUnitApiImpl(org.springframework.amqp.core.AmqpTemplate template, String exchangeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(org.openwms.common.transport.api.commands.Command command)
Process the givencommand
.
-
-
-
Field Detail
-
template
private final org.springframework.amqp.core.AmqpTemplate template
-
exchangeName
private final String exchangeName
-
-
Constructor Detail
-
AsyncTransportUnitApiImpl
AsyncTransportUnitApiImpl(org.springframework.amqp.core.AmqpTemplate template, @Value("${owms.commands.common.tu.exchange-name}") String exchangeName)
-
-
Method Detail
-
process
public void process(org.openwms.common.transport.api.commands.Command command)
Description copied from interface:AsyncTransportUnitApi
Process the givencommand
.- Specified by:
process
in interfaceAsyncTransportUnitApi
- Parameters:
command
- Command to process
-
-