Skip to main content
Version: Current

KafkaBroker

@rotorsoft/act-root


@rotorsoft/act-root / act-notify / KafkaBroker

Class: KafkaBroker

Defined in: libs/act-notify/src/kafka.ts:28

Refuses loudly until fan-out semantics are implemented.

Implementsโ€‹

Constructorsโ€‹

Constructorโ€‹

new KafkaBroker(options?): KafkaBroker

Defined in: libs/act-notify/src/kafka.ts:31

Parametersโ€‹

options?โ€‹

KafkaBrokerOptions = {}

Returnsโ€‹

KafkaBroker

Propertiesโ€‹

topicโ€‹

readonly topic: string

Defined in: libs/act-notify/src/kafka.ts:29

Methodsโ€‹

publish()โ€‹

publish(_message): void

Defined in: libs/act-notify/src/kafka.ts:35

Parametersโ€‹

_messageโ€‹

BrokerMessage

Returnsโ€‹

void

Implementation ofโ€‹

Broker.publish


subscribe()โ€‹

subscribe(_handler): BrokerDisposer

Defined in: libs/act-notify/src/kafka.ts:39

Parametersโ€‹

_handlerโ€‹

(message) => void

Returnsโ€‹

BrokerDisposer

Implementation ofโ€‹

Broker.subscribe