Class KafkaConsumerRecord<K,​V>


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

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

    • Field Detail

      • __typeArg_0

        public final io.vertx.lang.rx.TypeArg<K> __typeArg_0
      • __typeArg_1

        public final io.vertx.lang.rx.TypeArg<V> __typeArg_1
    • Constructor Detail

      • KafkaConsumerRecord

        public KafkaConsumerRecord​(Object delegate,
                                   io.vertx.lang.rx.TypeArg<K> typeArg_0,
                                   io.vertx.lang.rx.TypeArg<V> typeArg_1)
    • Method Detail

      • 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​(KafkaConsumerRecord arg,
                                                                             io.vertx.lang.rx.TypeArg<K> __typeArg_K,
                                                                             io.vertx.lang.rx.TypeArg<V> __typeArg_V)