Class KafkaConsumerRecords<K,V>

java.lang.Object
io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecords<K,V>
All Implemented Interfaces:
MutinyDelegate

public class KafkaConsumerRecords<K,V> extends Object implements MutinyDelegate
Vert.x Kafka consumer records

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • KafkaConsumerRecords

      public KafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords delegate)
    • KafkaConsumerRecords

      public KafkaConsumerRecords(Object delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)
    • KafkaConsumerRecords

      public KafkaConsumerRecords(io.vertx.kafka.client.consumer.KafkaConsumerRecords delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)
  • Method Details

    • getDelegate

      public io.vertx.kafka.client.consumer.KafkaConsumerRecords getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • size

      public int size()
      Returns:
      the total number of records in this batch
    • isEmpty

      public boolean isEmpty()
      Returns:
      whether this batch contains any records
    • recordAt

      public KafkaConsumerRecord<K,V> recordAt(int index)
      Parameters:
      index - the index of the record to get
      Returns:
    • newInstance

      public static <K, V> KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords arg)
    • newInstance

      public static <K, V> KafkaConsumerRecords<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecords arg, TypeArg<K> __typeArg_K, TypeArg<V> __typeArg_V)