@FunctionalInterface public interface MessagePostProcessor
This allows for further modification of the message after it has been processed by the converter and is useful for setting JMS headers and properties.
Often implemented as a lambda expression or as an anonymous inner class.
JmsTemplate.convertAndSend(String, Object, MessagePostProcessor)
,
JmsTemplate.convertAndSend(javax.jms.Destination, Object, MessagePostProcessor)
,
MessageConverter
Modifier and Type | Method and Description |
---|---|
Message |
postProcessMessage(Message message)
Process the given message.
|
Message postProcessMessage(Message message) throws JMSException
The returned message is typically a modified version of the original.
message
- the JMS message from the MessageConverternull
JMSException
- if thrown by JMS API methods