Interface ReceivingContextConsumer

    • Method Detail

      • accept

        void accept​(ReceivingContext receivingContext)
             throws jakarta.jms.JMSException
        Called before receiving a message.

        Can be used to customize the message before it is dispatched to application code.

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

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