(-main & args)
(add-shutdown-hook-consumer! consumer continue?)
Registers a shutdown hook to exit the consumer cleanly
Registers a shutdown hook to exit the consumer cleanly
(consume-messages! topic group-id dispatcher-fn)
Creates Kafka Consumer and shutdown hook, and starts the consumer
Creates Kafka Consumer and shutdown hook, and starts the consumer
(consumer-config topic group-id)
(poll-and-loop! consumer processing-fn continue?)
Continuously fetches records every poll-ms
, processes them and commits offset after each poll.
Continuously fetches records every `poll-ms`, processes them and commits offset after each poll.
(produce-message! topic message)
Creates a Kafka Producer and writes message to topic
by calling producer-fn
Creates a Kafka Producer and writes message to `topic` by calling `producer-fn`
(producer-config topic)
(start-consumer! consumer processing-fn continue?)
Starts consumer loop to process events read from topic
Starts consumer loop to process events read from `topic`
(start-consumer-thread! topic group-id fn)
(stop-and-close-consumer! consumer continue?)
Stops the consumer polling loop and closes the consumer.
Stops the consumer polling loop and closes the consumer.
(topic-config topic)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close