Class KafkaJSConsumerConnector

Description

KafkaJS consumer connector

Features:

  • consumer connector manager for KafkaJS

Example


Hierarchy

Constructors

Properties

#connections: Map<string, Consumer>

Description

Private connections storage

#connections: Map<string, Consumer> = ...

Description

Private connections storage

#current: Consumer

Description

Private link to selected (used) connection

#current: Consumer = undefined

Description

Private link to selected (used) connection

config: IConfig

Description

Config dependency

configs: Map<string, IKafkaJSConsumerConfig> = ...

Description

configs

counter: Counter

Description

Counter

histogram: Histogram

Description

Histogram

namespace: "KafkaJSConsumer" = 'KafkaJSConsumer'

Description

Namespace path for fetching configuration

Accessors

Methods

  • Parameters

    • name: string
    • handler: ((messages, batch) => Promise<void>)
        • (messages, batch): Promise<void>
        • Parameters

          • messages: KafkaMessage[]
          • batch: Omit<Batch, "messages">

          Returns Promise<void>

    Returns Promise<void>

    Description

    Subscribe

Generated using TypeDoc