Class AmqpRequestMessageHandler

java.lang.Object
org.openwms.common.comm.osip.req.AmqpRequestMessageHandler
All Implemented Interfaces:
Function<org.springframework.messaging.support.GenericMessage<RequestMessage>,Void>

@Profile("ASYNCHRONOUS") @OSIPComponent @RefreshScope class AmqpRequestMessageHandler extends Object implements Function<org.springframework.messaging.support.GenericMessage<RequestMessage>,Void>
An AmqpRequestMessageHandler is the handler function to accept RequestMessages and forward them for processing over AMQP.
Author:
Heiko Scherrer
  • Field Details

    • amqpTemplate

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

      private final String exchangeName
    • routingKey

      private final String routingKey
  • Constructor Details

    • AmqpRequestMessageHandler

      AmqpRequestMessageHandler(org.springframework.amqp.core.AmqpTemplate amqpTemplate, @Value("${owms.driver.osip.req.exchange-name}") String exchangeName, @Value("${owms.driver.osip.req.routing-key-out}") String routingKey)
  • Method Details