io.vertx.kafka.client.consumer

## Interface KafkaConsumerRecord<K,V>

-     public interface KafkaConsumerRecord<K,V>

  Vert.x Kafka consumer record

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `checksum()`
    `K` | `key()`
    `long` | `offset()`
    `int` | `partition()`
    `org.apache.kafka.clients.consumer.ConsumerRecord` | `record()`
    `long` | `timestamp()`
    `org.apache.kafka.common.record.TimestampType` | `timestampType()`
    `String` | `topic()`
    `V` | `value()`

- - ### Method Detail

    - #### topic

          String topic()

      Returns:
        the topic this record is received from

    - #### partition

          int partition()

      Returns:
        the partition from which this record is received

    - #### offset

          long offset()

      Returns:
        the position of this record in the corresponding Kafka partition.

    - #### timestamp

          long timestamp()

      Returns:
        the timestamp of this record

    - #### timestampType

          org.apache.kafka.common.record.TimestampType timestampType()

      Returns:
        the timestamp type of this record

    - #### checksum

          long checksum()

      Returns:
        the checksum (CRC32) of the record.

    - #### key

          K key()

      Returns:
        the key (or null if no key is specified)

    - #### value

          V value()

      Returns:
        the value

    - #### record

          org.apache.kafka.clients.consumer.ConsumerRecord record()

      Returns:
        the native Kafka consumer record with backed information

Copyright © 2017. All rights reserved.