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 using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaProducerRecord
(io.vertx.kafka.client.producer.KafkaProducerRecord delegate) KafkaProducerRecord
(io.vertx.kafka.client.producer.KafkaProducerRecord delegate, TypeArg<K> typeArg_0, TypeArg<V> typeArg_1) -
Method Summary
Modifier and TypeMethodDescriptionaddHeader
(KafkaHeader header) addHeaders
(List<KafkaHeader> headers) static <K,
V> KafkaProducerRecord<K, V> static <K,
V> KafkaProducerRecord<K, V> static <K,
V> KafkaProducerRecord<K, V> boolean
io.vertx.kafka.client.producer.KafkaProducerRecord
int
hashCode()
headers()
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) topic()
toString()
value()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
__typeArg_1
-
-
Constructor Details
-
KafkaProducerRecord
public KafkaProducerRecord(io.vertx.kafka.client.producer.KafkaProducerRecord delegate) -
KafkaProducerRecord
-
KafkaProducerRecord
-
-
Method Details
-
getDelegate
public io.vertx.kafka.client.producer.KafkaProducerRecord getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
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
- 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
- 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
- Parameters:
key
-value
-- Returns:
- the instance of KafkaProducerRecord<K,V> to chain method calls.
-
addHeader
- Parameters:
key
-value
-- Returns:
- the instance of KafkaProducerRecord<K,V> to chain method calls.
-
addHeader
- Parameters:
header
- the header- Returns:
- current KafkaProducerRecord instance
-
addHeaders
- 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 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)
-