Package org.openwms.common.comm.osip.err
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
ErrorMessage
s and
forward them for processing over AMQP.- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmqpErrorMessageHandler
(org.springframework.amqp.core.AmqpTemplate amqpTemplate, String exchangeName, String routingKey) -
Method Summary
Modifier and TypeMethodDescriptionapply
(org.springframework.messaging.support.GenericMessage<ErrorMessage> msg)
-
Field Details
-
amqpTemplate
private final org.springframework.amqp.core.AmqpTemplate amqpTemplate -
exchangeName
-
routingKey
-
-
Constructor Details
-
AmqpErrorMessageHandler
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<org.springframework.messaging.support.GenericMessage<ErrorMessage>,
Void>
-