Class KafkaConsumerRecord<K,V>
java.lang.Object
io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecord<K,V>
- All Implemented Interfaces:
MutinyDelegate
Vert.x Kafka consumer record
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
KafkaConsumerRecord
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaConsumerRecord(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate) Create a new instance ofKafkaConsumerRecorddelegating to the given (non-null) instance ofKafkaConsumerRecord.KafkaConsumerRecord(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the delegate instance.inthashCode()headers()key()static <K,V> KafkaConsumerRecord<K, V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate) Creates a new instance of theKafkaConsumerRecord.static <K,V> KafkaConsumerRecord<K, V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaConsumerRecord.longoffset()intlongorg.apache.kafka.common.record.TimestampTypetopic()toString()value()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
__typeArg_1
-
-
Constructor Details
-
KafkaConsumerRecord
Create a new instance ofKafkaConsumerRecorddelegating to the given (non-null) instance ofKafkaConsumerRecord. -
KafkaConsumerRecord
-
KafkaConsumerRecord
-
-
Method Details
-
getDelegate
Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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
- Returns:
- the key (or null if no key is specified)
-
value
- Returns:
- the value
-
headers
- Returns:
- the list of consumer record headers
-
newInstance
public static <K,V> KafkaConsumerRecord<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate) Creates a new instance of theKafkaConsumerRecord. -
newInstance
public static <K,V> KafkaConsumerRecord<K,V> newInstance(io.vertx.kafka.client.consumer.KafkaConsumerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaConsumerRecord. -
hashCode
public int hashCode() -
equals
-
toString
-