| kafka_producer_class | R Documentation |
R6 Class for Kafka Producer
R6 Class for Kafka Producer
java_producerreference to the underlying Java object Initialize
new()Create a new producer object.
Instead of kafka_producer_class$new() one can use kafka_producer()
kafka_producer_class$new()
self for method chaining
finalize()Code run when object is removed from session
kafka_producer_class$finalize()
start()Spin up producer and connect it to Kafka cluster
kafka_producer_class$start()
self for method chaining
end()Disconnect producer from Kafka cluster
kafka_producer_class$end()
self for method chaining
restart()Disconnect and reconnect producer from Kafka cluster
kafka_producer_class$restart()
self for method chaining
running()Whether or not producer is active (has been started or not)
kafka_producer_class$running()
TRUE/FALSE
props()Retrieving current current set of properties. If properties are supplied via props parameter thos properties will be set.
kafka_producer_class$props(..., .properties = NULL)
...a series of properties provided as key = "values"
.propertiesa list of properties provided as .properties = list(key = "values", ...)
returns a list of properties
send()kafka_producer_class$send(topic, msg, key = NULL, partition = NULL)
topictopic to send messaged to
msgmessage to be send or character vector of messages to be send
keyTBD
partitionTBD
returns self for method chaining
clone()The objects of this class are cloneable with this method.
kafka_producer_class$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.