- Type Parameters:
K
- the key type.
V
- the value type.
- All Superinterfaces:
- GenericMessageListener<java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>>
- All Known Subinterfaces:
- BatchAcknowledgingConsumerAwareMessageListener<K,V>, BatchAcknowledgingMessageListener<K,V>, BatchConsumerAwareMessageListener<K,V>
- All Known Implementing Classes:
- BatchMessagingMessageListenerAdapter, FilteringBatchMessageListenerAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface BatchMessageListener<K,V>
extends GenericMessageListener<java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>>
Listener for handling a batch of incoming Kafka messages; the list
is created from the consumer records object returned by a poll.
- Since:
- 1.1
- Author:
- Marius Bogoevici, Gary Russell