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