Liking cljdoc? Tell your friends :D

rp.jackdaw.user

Some handy functions for use in the repl.

Some handy functions for use in the repl.
raw docstring

admin-configclj

(admin-config)
(admin-config bootstrap-servers)

Convenient helper for building an admin config map given optional bootstrap servers string.

Convenient helper for building an admin config map given optional bootstrap servers string.
sourceraw docstring

consumer-configclj

(consumer-config)
(consumer-config bootstrap-servers)
(consumer-config bootstrap-servers group-id)

Convenient helper for building a consumer config map given optional bootstrap servers string and group id. group-id defaults to a random UUID. bootstrap-servers defaults to default port on localhost.

Convenient helper for building a consumer config map given optional bootstrap servers string and group id.
`group-id` defaults to a random UUID.
`bootstrap-servers` defaults to default port on localhost.
sourceraw docstring

create-topic!clj

(create-topic! admin-config topic-config)

Creates a single Kafka topic given a topic config.

Creates a single Kafka topic given a topic config.
sourceraw docstring

create-topics!clj

(create-topics! admin-config topic-configs)

Create multiple Kafka topics given a sequence of topic configs.

Create multiple Kafka topics given a sequence of topic configs.
sourceraw docstring

default-polling-interval-msclj

source

delete-topic!clj

(delete-topic! admin-config topic-config)

Delete a single Kafka topic given a topic config.

Delete a single Kafka topic given a topic config.
sourceraw docstring

delete-topics!clj

(delete-topics! admin-config topic-configs)

Delete multiple Kafka topics given a sequence of topic configs.

Delete multiple Kafka topics given a sequence of topic configs.
sourceraw docstring

get-keyvalsclj

(get-keyvals consumer-config topic-config)
(get-keyvals consumer-config topic-config polling-interval-ms)

Takes a consumer config and topic config, consumes from a Kafka topic, and returns a seq of key-value pairs.

Takes a consumer config and topic config, consumes from a Kafka topic, and returns a seq of key-value pairs.
sourceraw docstring

get-recordsclj

(get-records consumer-config topic-config)
(get-records consumer-config topic-config polling-interval-ms)

Takes a consumer config and topic config, consumes from a Kafka topic, and returns a seq of maps.

Takes a consumer config and topic config, consumes from a Kafka topic, and returns a seq of maps.
sourceraw docstring

list-topicsclj

(list-topics admin-config)

Returns a list of Kafka topics.

Returns a list of Kafka topics.
sourceraw docstring

produce!clj

(produce! producer-config topic-config value)
(produce! producer-config topic-config key value)
(produce! producer-config topic-config partition key value)

Takes a producer config, topic config and record value, and (optionally) a key and partition number, and produces to a Kafka topic.

Takes a producer config, topic config and record value, and (optionally) a key and
partition number, and produces to a Kafka topic.
sourceraw docstring

producer-configclj

(producer-config)
(producer-config bootstrap-servers)

Convenient helper for building a producer config map given optional bootstrap servers string.

Convenient helper for building a producer config map given optional bootstrap servers string.
sourceraw docstring

re-delete-topics!clj

(re-delete-topics! admin-config re)

Takes an instance of java.util.regex.Pattern and deletes any Kafka topics that match.

Takes an instance of java.util.regex.Pattern and deletes any Kafka
topics that match.
sourceraw docstring

topic-exists?clj

(topic-exists? admin-config topic-config)

Returns true if a topic exists with the name specified in the given topic config.

Returns true if a topic exists with the name specified in the given topic config.
sourceraw docstring

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

× close