Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RecordMetadata

Metadata related to a Kafka record

Hierarchy

  • RecordMetadata

Index

Constructors

constructor

  • Returns RecordMetadata

  • Parameters

    Returns RecordMetadata

Methods

getOffset

  • getOffset(): number
  • Set the offset of the record in the topic/partition.

    Returns number

getPartition

  • getPartition(): number
  • Set the partition the record was sent to

    Returns number

getTimestamp

  • getTimestamp(): number
  • Set the timestamp of the record in the topic/partition

    Returns number

getTopic

  • getTopic(): string
  • Set the topic the record was appended to

    Returns string

setOffset

  • Set the offset of the record in the topic/partition.

    Parameters

    • offset: number

    Returns RecordMetadata

setPartition

  • Set the partition the record was sent to

    Parameters

    • partition: number

    Returns RecordMetadata

setTimestamp

  • Set the timestamp of the record in the topic/partition

    Parameters

    • timestamp: number

    Returns RecordMetadata

setTopic

  • Set the topic the record was appended to

    Parameters

    • topic: string

    Returns RecordMetadata

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc