Class KafkaConsumerRecord<K,V>
- java.lang.Object
- 
- io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecord<K,V>
 
- 
 public class KafkaConsumerRecord<K,V> extends Object Vert.x Kafka consumer record NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static TypeArg<KafkaConsumerRecord>__TYPE_ARGTypeArg<K>__typeArg_0TypeArg<V>__typeArg_1
 - 
Constructor SummaryConstructors Constructor Description KafkaConsumerRecord(io.vertx.kafka.client.consumer.KafkaConsumerRecord delegate)KafkaConsumerRecord(io.vertx.kafka.client.consumer.KafkaConsumerRecord delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)KafkaConsumerRecord(Object delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longchecksum()Deprecated.As of Kafka 0.11.0.booleanequals(Object o)io.vertx.kafka.client.consumer.KafkaConsumerRecordgetDelegate()inthashCode()List<KafkaHeader>headers()Kkey()static <K,V>
 KafkaConsumerRecord<K,V>newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord arg)static <K,V>
 KafkaConsumerRecord<K,V>newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord arg, TypeArg<K> __typeArg_K, TypeArg<V> __typeArg_V)longoffset()intpartition()longtimestamp()org.apache.kafka.common.record.TimestampTypetimestampType()Stringtopic()StringtoString()Vvalue()
 
- 
- 
- 
Method Detail- 
getDelegatepublic io.vertx.kafka.client.consumer.KafkaConsumerRecord getDelegate() 
 - 
topicpublic String topic() - Returns:
- the topic this record is received from
 
 - 
partitionpublic int partition() - Returns:
- the partition from which this record is received
 
 - 
offsetpublic long offset() - Returns:
- the position of this record in the corresponding Kafka partition.
 
 - 
timestamppublic long timestamp() - Returns:
- the timestamp of this record
 
 - 
timestampTypepublic org.apache.kafka.common.record.TimestampType timestampType() - Returns:
- the timestamp type of this record
 
 - 
checksum@Deprecated public long checksum() Deprecated.As of Kafka 0.11.0. Because of the potential for message format conversion on the broker, the checksum returned by the broker may not match what was computed by the producer. It is therefore unsafe to depend on this checksum for end-to-end delivery guarantees. Additionally, message format v2 does not include a record-level checksum (for performance, the record checksum was replaced with a batch checksum). To maintain compatibility, a partial checksum computed from the record timestamp, serialized key size, and serialized value size is returned instead, but this should not be depended on for end-to-end reliability.- Returns:
- the checksum (CRC32) of the record.
 
 - 
keypublic K key() - Returns:
- the key (or null if no key is specified)
 
 - 
valuepublic V value() - Returns:
- the value
 
 - 
headerspublic List<KafkaHeader> headers() - Returns:
- the list of consumer record headers
 
 - 
newInstancepublic static <K,V> KafkaConsumerRecord<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord arg) 
 - 
newInstancepublic static <K,V> KafkaConsumerRecord<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord arg, TypeArg<K> __typeArg_K, TypeArg<V> __typeArg_V) 
 
- 
 
-