Class KafkaProducerRecord<K,V>
java.lang.Object
io.vertx.rxjava3.kafka.client.producer.KafkaProducerRecord<K,V>
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<KafkaProducerRecord> final io.vertx.lang.rx.TypeArg<K> final io.vertx.lang.rx.TypeArg<V> -
Constructor Summary
ConstructorsConstructorDescriptionKafkaProducerRecord(KafkaProducerRecord delegate) KafkaProducerRecord(Object delegate, io.vertx.lang.rx.TypeArg<K> typeArg_0, io.vertx.lang.rx.TypeArg<V> typeArg_1) -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(KafkaHeader header) Add an header to this record.LikeaddHeader(String, String)but with a key/value pairLikeaddHeader(String, String)but with a key/value pairaddHeaders(List<KafkaHeader> headers) Add a list of headers to this record.static <K,V> KafkaProducerRecord <K, V> Create a concrete instance of a Vert.x producer recordstatic <K,V> KafkaProducerRecord <K, V> Create a concrete instance of a Vert.x producer recordstatic <K,V> KafkaProducerRecord <K, V> Create a concrete instance of a Vert.x producer recordbooleaninthashCode()headers()key()static <K,V> KafkaProducerRecord <K, V> static <K,V> KafkaProducerRecord <K, V> newInstance(KafkaProducerRecord arg, io.vertx.lang.rx.TypeArg<K> __typeArg_K, io.vertx.lang.rx.TypeArg<V> __typeArg_V) topic()toString()value()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
__typeArg_1
-
-
Constructor Details
-
KafkaProducerRecord
-
KafkaProducerRecord
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
public 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- 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
Create a concrete instance of a Vert.x producer record- 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
Create a concrete instance of a Vert.x producer record- Parameters:
topic- the topic this record is being sent tovalue- the value- Returns:
- Vert.x producer record
-
topic
- Returns:
- the topic this record is being sent to
-
key
- Returns:
- the key (or null if no key is specified)
-
value
- Returns:
- the value
-
timestamp
- Returns:
- the timestamp of this record
-
partition
- Returns:
- the partition to which the record will be sent (or null if no partition was specified)
-
addHeader
LikeaddHeader(String, String)but with a key/value pair- Parameters:
key-value-- Returns:
-
addHeader
LikeaddHeader(String, String)but with a key/value pair- Parameters:
key-value-- Returns:
-
addHeader
Add an header to this record.- Parameters:
header- the header- Returns:
- current KafkaProducerRecord instance
-
addHeaders
Add a list of headers to this record.- Parameters:
headers- the headers- Returns:
- current KafkaProducerRecord instance
-
headers
- Returns:
- the headers of this record
-
newInstance
-
newInstance
public static <K,V> KafkaProducerRecord<K,V> newInstance(KafkaProducerRecord arg, io.vertx.lang.rx.TypeArg<K> __typeArg_K, io.vertx.lang.rx.TypeArg<V> __typeArg_V)
-