接口 MessagePostProcessor
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface MessagePostProcessor
To be used with JmsTemplate's send method that converts an object to a message.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.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Message
postProcessMessage(Message message)
Process the given message.
方法详细资料
postProcessMessage
Message postProcessMessage(Message message) throws JMSException
Process the given message.The returned message is typically a modified version of the original.
- 参数:
message
- the JMS message from the MessageConverter- 返回:
- a post-processed variant of the message, or simply the incoming message; never
null
- 抛出:
JMSException
- if thrown by JMS API methods