@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),
Message postProcessMessage(Message message) throws JMSException
The returned message is typically a modified version of the original.
message- the JMS message from the MessageConverter
JMSException- if thrown by JMS API methods