Class KafkaProducerRecord<K,V>
java.lang.Object
io.vertx.mutiny.kafka.client.producer.KafkaProducerRecord<K,V>
- All Implemented Interfaces:
MutinyDelegate
Vert.x Kafka producer record.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
KafkaProducerRecord
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaProducerRecord(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate) Create a new instance ofKafkaProducerRecorddelegating to the given (non-null) instance ofKafkaProducerRecord.KafkaProducerRecord(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(KafkaHeader header) Add an header to this record.LikeaddHeader(KafkaHeader)but with a key/value pairLikeaddHeader(KafkaHeader)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 recordbooleanGet the delegate instance.inthashCode()headers()key()static <K,V> KafkaProducerRecord<K, V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate) Creates a new instance of theKafkaProducerRecord.static <K,V> KafkaProducerRecord<K, V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaProducerRecord.topic()toString()value()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
__typeArg_1
-
-
Constructor Details
-
KafkaProducerRecord
Create a new instance ofKafkaProducerRecorddelegating to the given (non-null) instance ofKafkaProducerRecord. -
KafkaProducerRecord
-
KafkaProducerRecord
-
-
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
-
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- Type Parameters:
K- key typeV- value type- 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- Type Parameters:
K- key typeV- value type- 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- Type Parameters:
K- key typeV- value type- 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(KafkaHeader)but with a key/value pair -
addHeader
LikeaddHeader(KafkaHeader)but with a key/value pair -
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
public static <K,V> KafkaProducerRecord<K,V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate) Creates a new instance of theKafkaProducerRecord. -
newInstance
public static <K,V> KafkaProducerRecord<K,V> newInstance(io.vertx.kafka.client.producer.KafkaProducerRecord<K, V> delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) Creates a new instance of theKafkaProducerRecord. -
hashCode
public int hashCode() -
equals
-
toString
-