Interface SendingContextConsumer

    • Method Detail

      • accept

        void accept​(SendingContext sendingContext)
             throws jakarta.jms.JMSException
        Called before sending a message.

        Can be used to customize the message or the destination before the message is actually sent.

        Parameters:
        sendingContext -
        Throws:
        jakarta.jms.JMSException
      • andThen

        default SendingContextConsumer andThen​(SendingContextConsumer after)
        Same semantics as Consumer.andThen(Consumer).
        Parameters:
        after - the operation to perform after this operation
        Returns:
        a composed SendingContextConsumer that performs in sequence this operation followed by the after operation
        Throws:
        java.lang.NullPointerException - if after is null