Class KafkaProducerRecord<K,V>
- java.lang.Object
-
- io.vertx.mutiny.kafka.client.producer.KafkaProducerRecord<K,V>
-
public class KafkaProducerRecord<K,V> extends Object
Vert.x Kafka producer record. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<KafkaProducerRecord>
__TYPE_ARG
TypeArg<K>
__typeArg_0
TypeArg<V>
__typeArg_1
-
Constructor Summary
Constructors Constructor Description KafkaProducerRecord(io.vertx.kafka.client.producer.KafkaProducerRecord delegate)
KafkaProducerRecord(io.vertx.kafka.client.producer.KafkaProducerRecord delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)
KafkaProducerRecord(Object delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaProducerRecord<K,V>
addHeader(KafkaHeader header)
KafkaProducerRecord<K,V>
addHeader(String key, Buffer value)
KafkaProducerRecord<K,V>
addHeader(String key, String value)
KafkaProducerRecord<K,V>
addHeaders(List<KafkaHeader> headers)
static <K,V>
KafkaProducerRecord<K,V>create(String topic, K key, V value)
static <K,V>
KafkaProducerRecord<K,V>create(String topic, K key, V value, Long timestamp, Integer partition)
static <K,V>
KafkaProducerRecord<K,V>create(String topic, V value)
boolean
equals(Object o)
io.vertx.kafka.client.producer.KafkaProducerRecord
getDelegate()
int
hashCode()
List<KafkaHeader>
headers()
K
key()
static <K,V>
KafkaProducerRecord<K,V>newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord arg)
static <K,V>
KafkaProducerRecord<K,V>newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord arg, TypeArg<K> __typeArg_K, TypeArg<V> __typeArg_V)
Integer
partition()
Long
timestamp()
String
topic()
String
toString()
V
value()
-
-
-
Method Detail
-
getDelegate
public io.vertx.kafka.client.producer.KafkaProducerRecord getDelegate()
-
create
public static <K,V> KafkaProducerRecord<K,V> create(String topic, K key, V value, Long timestamp, Integer partition)
- Parameters:
topic
- 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)- Returns:
- Vert.x producer record
-
create
public static <K,V> KafkaProducerRecord<K,V> create(String topic, K key, V value)
- Parameters:
topic
- the topic this record is being sent tokey
- the key (or null if no key is specified)value
- the value- Returns:
- Vert.x producer record
-
create
public static <K,V> KafkaProducerRecord<K,V> create(String topic, V value)
- Parameters:
topic
- the topic this record is being sent tovalue
- the value- Returns:
- Vert.x producer record
-
topic
public String topic()
- Returns:
- the topic this record is being sent to
-
key
public K key()
- Returns:
- the key (or null if no key is specified)
-
value
public V value()
- Returns:
- the value
-
timestamp
public Long timestamp()
- Returns:
- the timestamp of this record
-
partition
public Integer partition()
- Returns:
- the partition to which the record will be sent (or null if no partition was specified)
-
addHeader
public KafkaProducerRecord<K,V> addHeader(String key, String value)
- Parameters:
key
-value
-- Returns:
- the instance of KafkaProducerRecord
to chain method calls.
-
addHeader
public KafkaProducerRecord<K,V> addHeader(String key, Buffer value)
- Parameters:
key
-value
-- Returns:
- the instance of KafkaProducerRecord
to chain method calls.
-
addHeader
public KafkaProducerRecord<K,V> addHeader(KafkaHeader header)
- Parameters:
header
- the header- Returns:
- current KafkaProducerRecord instance
-
addHeaders
public KafkaProducerRecord<K,V> addHeaders(List<KafkaHeader> headers)
- Parameters:
headers
- the headers- Returns:
- current KafkaProducerRecord instance
-
headers
public List<KafkaHeader> headers()
- Returns:
- the headers of this record
-
newInstance
public static <K,V> KafkaProducerRecord<K,V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord arg)
-
newInstance
public static <K,V> KafkaProducerRecord<K,V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord arg, TypeArg<K> __typeArg_K, TypeArg<V> __typeArg_V)
-
-