public class MessageIterator extends Object implements Iterator<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>>, AutoCloseable
Constructor and Description |
---|
MessageIterator(org.apache.kafka.clients.consumer.KafkaConsumer<byte[],byte[]> kafkaConsumer,
KafkaPartitionScanSpec subScanSpec,
long kafkaPollTimeOut) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getTotalFetchTime()
Returns total fetch time of the messages from topic.
|
boolean |
hasNext() |
org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public MessageIterator(org.apache.kafka.clients.consumer.KafkaConsumer<byte[],byte[]> kafkaConsumer, KafkaPartitionScanSpec subScanSpec, long kafkaPollTimeOut)
public void remove()
public boolean hasNext()
public long getTotalFetchTime()
public org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> next()
public void close()
close
in interface AutoCloseable
Copyright © 1970 The Apache Software Foundation. All rights reserved.