Description Usage Format Usage Methods Arguments
Creates KafkaProducer object (R6 class)
1 |
An object of class R6ClassGenerator
of length 24.
For usage details see Methods, Arguments and Examples sections.
1 | producer$send(messages)
|
producer = KafkaProducer$new(broker_list, client_id = "RscalaKafkaClient", config = list())
Creares instance of KafkaProducer
producer$send(messages)
Asynchronously send a record to a topic.
A KafkaProducer
object
string, identifier of the client
name of a Kafka topic to send messages
broker list for a Kafka cluster
ProducerConfig parameters (in key = value
format) for kafka client -
see them here https://kafka.apache.org/0100/javadoc/index.html?org/apache/kafka/clients/producer/ProducerConfig.html
character strings - messages to send to kafka
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.