Kafka publisher
KafkaPublisher
¶
Bases: Publisher
Implementation of a publisher for Kafka
connect(data_stream)
async
¶
Connects to the broker running in StreamPipes.
| PARAMETER | DESCRIPTION |
|---|---|
data_stream |
Contains the meta information (resources) for a data stream.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
None
|
|
disconnect()
async
¶
Closes the connection to the server.
| RETURNS | DESCRIPTION |
|---|---|
None
|
|
publish_event(event)
async
¶
Publish an event to a connected data stream.
| PARAMETER | DESCRIPTION |
|---|---|
event |
The event to be published.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
None
|
|
Last update:
December 7, 2024