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
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final org.springframework.amqp.core.AmqpTemplate -
Constructor Summary
ConstructorsConstructorDescriptionAsyncTransportUnitApiImpl(org.springframework.amqp.core.AmqpTemplate template, String exchangeName) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(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:
processin interfaceAsyncTransportUnitApi- Parameters:
command- Command to process
-