Namespace: KafkaJS

KafkaJS

Namespace for promifisied, async Kafka client API.

Classes

Admin
Consumer
Kafka
KafkaJSAggregateError
KafkaJSConnectionError
KafkaJSCreateTopicError
KafkaJSDeleteGroupsError
KafkaJSDeleteTopicRecordsError
KafkaJSError
KafkaJSGroupCoordinatorNotFound
KafkaJSNoBrokerAvailableError
KafkaJSNotImplemented
KafkaJSOffsetOutOfRange
KafkaJSPartialMessageError
KafkaJSProtocolError
KafkaJSRequestTimeoutError
KafkaJSSASLAuthenticationError
KafkaJSTimeout
Producer

Members

(static, readonly) AclOperationTypes :number

A list of ACL operation types.

Type:
  • number
See:

(static, constant) CompressionTypes :string

A list of supported compression types.

Type:
  • string
Properties:
NameTypeDescription
Nonestring
GZIPstring
SNAPPYstring
LZ4string
ZSTDstring

(static, readonly) ConsumerGroupStates :number

A list of consumer group states.

Type:
  • number
See:

(static, readonly) ConsumerGroupTypes :number

A list of consumer group types.

Type:
  • number
See:
  • RdKafka.ConsumerGroupTypes

(static, readonly) IsolationLevel :number

A list of isolation levels.

Type:
  • number
See:

(static, constant) PartitionAssigners :string

A list of supported partition assignor types.

Type:
  • string
Properties:
NameTypeDescription
roundRobinstring
rangestring
cooperativeStickystring

Methods

(static) isKafkaJSError(e) → {boolean}

Parameters:
NameTypeDescription
eany
Returns:

Returns whether the error is a KafkaJSError.

Type
boolean

(static) isRebalancing(e) → {boolean}

Parameters:
NameTypeDescription
eKafkaJS.KafkaJSError
Returns:

Returns whether the error is a rebalancing error.

Type
boolean