Class AsyncTransportUnitApiImpl
java.lang.Object
org.openwms.wms.movements.spi.common.AsyncTransportUnitApiImpl
- All Implemented Interfaces:
AsyncTransportUnitApi
@Profile("ASYNCHRONOUS")
@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
Modifier and TypeFieldDescriptionprivate final String
private final org.springframework.amqp.core.AmqpTemplate
-
Constructor Summary
ConstructorDescriptionAsyncTransportUnitApiImpl
(org.springframework.amqp.core.AmqpTemplate template, String exchangeName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.openwms.common.transport.api.commands.Command command) Process the givencommand
.
-
Field Details
-
template
private final org.springframework.amqp.core.AmqpTemplate template -
exchangeName
-
-
Constructor Details
-
AsyncTransportUnitApiImpl
AsyncTransportUnitApiImpl(org.springframework.amqp.core.AmqpTemplate template, @Value("${owms.commands.common.tu.exchange-name}") String exchangeName)
-
-
Method Details
-
process
@Measured public void process(org.openwms.common.transport.api.commands.Command command) Process the givencommand
.- Specified by:
process
in interfaceAsyncTransportUnitApi
- Parameters:
command
- Command to process
-