Class AmqpErrorMessageHandler

java.lang.Object
org.openwms.common.comm.osip.err.AmqpErrorMessageHandler
All Implemented Interfaces:
Function<org.springframework.messaging.support.GenericMessage<ErrorMessage>,Void>

@Profile("ASYNCHRONOUS") @OSIPComponent @RefreshScope class AmqpErrorMessageHandler extends Object implements Function<org.springframework.messaging.support.GenericMessage<ErrorMessage>,Void>
An AmqpErrorMessageHandler is the handler function to accept ErrorMessages 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

    • AmqpErrorMessageHandler

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