Class RabbitAmqpMessageListenerAdapter

All Implemented Interfaces:
MessageListener, ChannelAwareMessageListener, RabbitAmqpMessageListener

public class RabbitAmqpMessageListenerAdapter extends MessagingMessageListenerAdapter implements RabbitAmqpMessageListener
A MessagingMessageListenerAdapter extension for the RabbitAmqpMessageListener. Provides these arguments for the MessagingMessageListenerAdapter.getHandlerAdapter() invocation:
  • Message - the native AMQP 1.0 message without any conversions
  • Message - Spring AMQP message abstraction as conversion result from the native AMQP 1.0 message
  • Message - Spring Messaging abstraction as conversion result from the Spring AMQP message
  • Consumer.Context - RabbitMQ AMQP client consumer settlement API.
  • AmqpAcknowledgment - Spring AMQP acknowledgment abstraction: delegates to the Consumer.Context

This class reuses the MessagingMessageListenerAdapter as much as possible just to avoid duplication. The Channel abstraction from AMQP Client 0.9.1 is out use and present here just for API compatibility and to follow DRY principle. Can be reworked eventually, when this AMQP 1.0 client won't be based on spring-rabbit dependency.

Since:
4.0
Author:
Artem Bilan