Package io.vertx.kafka.client.consumer
Interface KafkaConsumerRecords<K,V>
-
public interface KafkaConsumerRecords<K,V>
Vert.x Kafka consumer records
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
KafkaConsumerRecord<K,V>
recordAt(int index)
Get the record at the given indexorg.apache.kafka.clients.consumer.ConsumerRecords<K,V>
records()
int
size()
-
-
-
Method Detail
-
size
int size()
- Returns:
- the total number of records in this batch
-
isEmpty
boolean isEmpty()
- Returns:
- whether this batch contains any records
-
recordAt
KafkaConsumerRecord<K,V> recordAt(int index)
Get the record at the given index- Parameters:
index
- the index of the record to get- Throws:
IndexOutOfBoundsException
- if index <0 or index>=size()
-
-