Class RecordMessagingMessageListenerAdapter<K,V>

java.lang.Object
org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter<K,V>
org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter<K,V>
Type Parameters:
K - the key type.
V - the value type.
All Implemented Interfaces:
AcknowledgingConsumerAwareMessageListener<K,V>, ConsumerSeekAware, GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>, MessageListener<K,V>

public class RecordMessagingMessageListenerAdapter<K,V> extends MessagingMessageListenerAdapter<K,V> implements AcknowledgingConsumerAwareMessageListener<K,V>
A MessageListener adapter that invokes a configurable HandlerAdapter; used when the factory is configured for the listener to receive individual messages.

Wraps the incoming Kafka Message to Spring's Message abstraction.

The original ConsumerRecord and the Acknowledgment are provided as additional arguments so that these can be injected as method arguments if necessary.

Author:
Stephane Nicoll, Gary Russell, Artem Bilan, Venil Noronha