Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KafkaProducerRecord<K, V>

Vert.x Kafka producer record.

Type parameters

  • K

  • V

Hierarchy

  • KafkaProducerRecord

Index

Methods

addHeader

  • Like {@link KafkaProducerRecord#addHeader} but with a key/value pair

    Parameters

    • key: string
    • value: string

    Returns KafkaProducerRecord<K, V>

  • Like {@link KafkaProducerRecord#addHeader} but with a key/value pair

    Parameters

    • key: string
    • value: Buffer

    Returns KafkaProducerRecord<K, V>

  • Add an header to this record.

    Parameters

    Returns KafkaProducerRecord<K, V>

addHeaders

  • Add a list of headers to this record.

    Parameters

    Returns KafkaProducerRecord<K, V>

headers

  • Returns KafkaHeader

key

  • key(): K
  • Returns K

partition

  • partition(): number
  • Returns number

timestamp

  • timestamp(): number
  • Returns number

topic

  • topic(): string
  • Returns string

value

  • value(): V
  • Returns V

Static create

  • Create a concrete instance of a Vert.x producer record

    Type parameters

    • K

    • V

    Parameters

    • topic: string
    • key: K
    • value: V
    • timestamp: number
    • partition: number

    Returns KafkaProducerRecord<K, V>

  • Create a concrete instance of a Vert.x producer record

    Type parameters

    • K

    • V

    Parameters

    • topic: string
    • key: K
    • value: V

    Returns KafkaProducerRecord<K, V>

  • Create a concrete instance of a Vert.x producer record

    Type parameters

    • K

    • V

    Parameters

    • topic: string
    • value: V

    Returns KafkaProducerRecord<K, V>

Generated using TypeDoc