Class ConsumerRecords<K,V>

java.lang.Object
org.apache.kafka.clients.consumer.ConsumerRecords<K,V>
All Implemented Interfaces:
Iterable<ConsumerRecord<K,V>>

public class ConsumerRecords<K,V> extends Object implements Iterable<ConsumerRecord<K,V>>
A container that holds the list ConsumerRecord per partition for a particular topic. There is one ConsumerRecord list for every topic partition returned by a Consumer.poll(java.time.Duration) operation.