public interface KafkaProducerRecord<K,V>
| Modifier and Type | Method and Description |
|---|---|
static <K,V> KafkaProducerRecord<K,V> |
create(String topic,
K key,
V value)
Create a concrete instance of a Vert.x producer record
|
static <K,V> KafkaProducerRecord<K,V> |
create(String topic,
K key,
V value,
Integer partition)
Create a concrete instance of a Vert.x producer record
|
static <K,V> KafkaProducerRecord<K,V> |
create(String topic,
K key,
V value,
Long timestamp,
Integer partition)
Create a concrete instance of a Vert.x producer record
|
static <K,V> KafkaProducerRecord<K,V> |
create(String topic,
V value)
Create a concrete instance of a Vert.x producer record
|
K |
key() |
Integer |
partition() |
org.apache.kafka.clients.producer.ProducerRecord |
record() |
Long |
timestamp() |
String |
topic() |
V |
value() |
static <K,V> KafkaProducerRecord<K,V> create(String topic, K key, V value, Long timestamp, Integer partition)
K - key typeV - value typetopic - the topic this record is being sent tokey - the key (or null if no key is specified)value - the valuetimestamp - the timestamp of this recordpartition - the partition to which the record will be sent (or null if no partition was specified)static <K,V> KafkaProducerRecord<K,V> create(String topic, K key, V value, Integer partition)
K - key typeV - value typetopic - the topic this record is being sent tokey - the key (or null if no key is specified)value - the valuepartition - the partition to which the record will be sent (or null if no partition was specified)static <K,V> KafkaProducerRecord<K,V> create(String topic, K key, V value)
K - key typeV - value typetopic - the topic this record is being sent tokey - the key (or null if no key is specified)value - the valuestatic <K,V> KafkaProducerRecord<K,V> create(String topic, V value)
K - key typeV - value typetopic - the topic this record is being sent tovalue - the valueString topic()
K key()
V value()
Long timestamp()
Integer partition()
org.apache.kafka.clients.producer.ProducerRecord record()
Copyright © 2017. All rights reserved.