|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.clients.consumer.ConsumerRecords
public class ConsumerRecords
A container that holds the list ConsumerRecord
per partition for a particular topic. There is one for every topic returned by a
Consumer.poll(long)
operation.
Constructor Summary | |
---|---|
ConsumerRecords(java.lang.String topic,
java.util.Map<java.lang.Integer,java.util.List<ConsumerRecord>> records)
|
Method Summary | |
---|---|
java.util.List<ConsumerRecord> |
records(int... partitions)
|
java.lang.String |
topic()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsumerRecords(java.lang.String topic, java.util.Map<java.lang.Integer,java.util.List<ConsumerRecord>> records)
Method Detail |
---|
public java.util.List<ConsumerRecord> records(int... partitions)
partitions
- The input list of partitions for a particular topic. If no partitions are
specified, returns records for all partitions
ConsumerRecord
s associated with the given partitions.public java.lang.String topic()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |