接口 MessageCreator

  • 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface MessageCreator
    Creates a JMS message given a Session.

    The Session typically is provided by an instance of the JmsTemplate class.

    Implementations do not need to concern themselves with checked JMSExceptions (from the 'javax.jms' package) that may be thrown from operations they attempt. The JmsTemplate will catch and handle these JMSExceptions appropriately.

    从以下版本开始:
    1.1
    作者:
    Mark Pollack