Class KafkaProducerRecord<K, V>
Methods
addHeader
-
Parameters
-
key: string
-
value: string
-
Parameters
-
key: string
-
value: Buffer
-
Parameters
addHeaders
-
Parameters
headers
-
key
-
Returns K
partition
-
Returns number
timestamp
-
Returns number
topic
-
Returns string
value
-
Returns V
Static create
- create<K, V>(topic: string, key: K, value: V, timestamp: number, partition: number): KafkaProducerRecord<K, V>
- create<K, V>(topic: string, key: K, value: V): KafkaProducerRecord<K, V>
- create<K, V>(topic: string, value: V): KafkaProducerRecord<K, V>
-
Type parameters
Parameters
-
topic: string
-
key: K
-
value: V
-
timestamp: number
-
partition: number
-
Type parameters
Parameters
-
topic: string
-
key: K
-
value: V
-
Type parameters
Parameters
Vert.x Kafka producer record.