
Package ca.uhn.fhir.broker.jms
Class SpringMessagingProducerAdapter<T>
java.lang.Object
ca.uhn.fhir.broker.jms.SpringMessagingProducerAdapter<T>
- Type Parameters:
T
- the type of payload this message producer is expecting to send
- All Implemented Interfaces:
IChannelProducer<T>
Adapt a Spring Messaging (JMS) Queue to
IChannelProducer
-
Constructor Summary
ConstructorsConstructorDescriptionSpringMessagingProducerAdapter
(Class<? extends ca.uhn.fhir.rest.server.messaging.IMessage<T>> theMessageType, ISpringMessagingChannelProducer theSpringMessagingChannelProducer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptor
(org.springframework.messaging.support.ChannelInterceptor theInterceptor) Send a message to the broker.
-
Constructor Details
-
SpringMessagingProducerAdapter
public SpringMessagingProducerAdapter(Class<? extends ca.uhn.fhir.rest.server.messaging.IMessage<T>> theMessageType, ISpringMessagingChannelProducer theSpringMessagingChannelProducer)
-
-
Method Details
-
getChannelName
- Specified by:
getChannelName
in interfaceIChannelProducer<T>
- Returns:
- the name of the topic or queue that this producer is sending messages to
-
send
Description copied from interface:IChannelProducer
Send a message to the broker.- Specified by:
send
in interfaceIChannelProducer<T>
- Parameters:
theMessage
- the message to send- Returns:
- the result of the send operation
-
addInterceptor
-
getSpringMessagingProducer
-
getMessageType
-