Interface ChannelAwareBatchMessageListener

    • Method Detail

      • onMessage

        default void onMessage​(Message message,
                               com.rabbitmq.client.Channel channel)
                        throws Exception
        Description copied from interface: ChannelAwareMessageListener
        Callback for processing a received Rabbit message.

        Implementors are supposed to process the given Message, typically sending reply messages through the given Session.

        Specified by:
        onMessage in interface ChannelAwareMessageListener
        Parameters:
        message - the received AMQP message (never null)
        channel - the underlying Rabbit Channel (never null unless called by the stream listener container).
        Throws:
        Exception - Any.