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 Details

    • template

      private final org.springframework.amqp.core.AmqpTemplate template
    • exchangeName

      private final String 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 given command.
      Specified by:
      process in interface AsyncTransportUnitApi
      Parameters:
      command - Command to process