vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package kafka
  Definition Classes
    scala
-  package client
  Definition Classes
    kafka
-  package producer
  Definition Classes
    client
- KafkaHeader
- KafkaProducer
- KafkaProducerRecord
- RecordMetadata

c

io.vertx.scala.kafka.client.producer

# KafkaProducerRecord 

###
Companion object KafkaProducerRecord

#### class KafkaProducerRecord[K, V] extends AnyRef

Vert.x Kafka producer record.

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. KafkaProducerRecord
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new KafkaProducerRecord(_asJava: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[K], arg1: scala.reflect.api.JavaUniverse.TypeTag[V])

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def addHeader(header: KafkaHeader): KafkaProducerRecord[K, V]

   Add an header to this record.

   Add an header to this record. * @param header the header

   returns

     current KafkaProducerRecord instance

5.  def addHeader(key: String, value: Buffer): KafkaProducerRecord[K, V]

   Like io.vertx.scala.kafka.client.producer.KafkaProducerRecord#addHeader but with a key/value pair

6.  def addHeader(key: String, value: String): KafkaProducerRecord[K, V]

   Like io.vertx.scala.kafka.client.producer.KafkaProducerRecord#addHeader but with a key/value pair

7.  def addHeaders(headers: Buffer[KafkaHeader]): KafkaProducerRecord[K, V]

   Add a list of headers to this record.

   Add a list of headers to this record. * @param headers the headers

   returns

     current KafkaProducerRecord instance

8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  def asJava: AnyRef
10.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )
11.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
12.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
13.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
14.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
15.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
16.  def headers(): Buffer[KafkaHeader]

    returns

      the headers of this record

17.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
18.  def key(): K

    returns

      the key (or null if no key is specified)

19.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
22.  def partition(): Int

    returns

      the partition to which the record will be sent (or null if no partition was specified)

23.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
24.  def timestamp(): Long

    returns

      the timestamp of this record

25.  def toString(): String
    Definition Classes
      AnyRef → Any
26.  def topic(): String

    returns

      the topic this record is being sent to

27.  def value(): V

    returns

      the value

28.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
29.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
30.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped