Class KafkaConsumerRecord<K,V>

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

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

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

  • Field Details

  • Constructor Details

    • KafkaConsumerRecord

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

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

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

    • getDelegate

      public io.vertx.kafka.client.consumer.KafkaConsumerRecord 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
    • topic

      public String topic()
      Returns:
      the topic this record is received from
    • partition

      public int partition()
      Returns:
      the partition from which this record is received
    • offset

      public long offset()
      Returns:
      the position of this record in the corresponding Kafka partition.
    • timestamp

      public long timestamp()
      Returns:
      the timestamp of this record
    • timestampType

      public org.apache.kafka.common.record.TimestampType timestampType()
      Returns:
      the timestamp type of this record
    • key

      public K key()
      Returns:
      the key (or null if no key is specified)
    • value

      public V value()
      Returns:
      the value
    • headers

      public List<KafkaHeader> headers()
      Returns:
      the list of consumer record headers
    • newInstance

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

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