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