Liking cljdoc? Tell your friends :D

lib-kafka.kafka


-mainclj

(-main & args)

add-shutdown-hook-consumer!clj

(add-shutdown-hook-consumer! consumer continue?)

Registers a shutdown hook to exit the consumer cleanly

Registers a shutdown hook to exit the consumer cleanly
raw docstring

consume-messages!clj

(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
raw docstring

consumer-configclj

(consumer-config topic group-id)

kafka-configclj


poll-and-loop!clj

(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.
raw docstring

produce-message!clj

(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`
raw docstring

producer-configclj

(producer-config topic)

start-consumer!clj

(start-consumer! consumer processing-fn continue?)

Starts consumer loop to process events read from topic

Starts consumer loop to process events read from `topic`
raw docstring

start-consumer-thread!clj

(start-consumer-thread! topic group-id fn)

stop-and-close-consumer!clj

(stop-and-close-consumer! consumer continue?)

Stops the consumer polling loop and closes the consumer.

Stops the consumer polling loop and closes the consumer.
raw docstring

topic-configclj

(topic-config topic)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close