Internal helpers for the Java-facing facade. NOT part of the public API. Centralizes type-coercion between Java collections and Clojure data so the individual gen-class wrappers stay small and free of reflection.
Internal helpers for the Java-facing facade. NOT part of the public API. Centralizes type-coercion between Java collections and Clojure data so the individual gen-class wrappers stay small and free of reflection.
(java-list->vec xs)Convert a java.util.List<String> into a Clojure vector of strings.
Convert a java.util.List<String> into a Clojure vector of strings.
(java-map->config m)Convert a java.util.Map<String,Object> into a Clojure config map with keyword keys. Accepts both kebab-case and dot-notation Kafka keys; the underlying util/normalize-config will canonicalize them.
Convert a java.util.Map<String,Object> into a Clojure config map with keyword keys. Accepts both kebab-case and dot-notation Kafka keys; the underlying util/normalize-config will canonicalize them.
(with-kafka-ex msg & body)Wrap a body so that any Throwable is rethrown as a io.github.caioclavico.kafkametamorphosis.KafkaMetamorphosisException with the given message. Keeps the Java-facing API exception-stable.
Wrap a body so that any Throwable is rethrown as a io.github.caioclavico.kafkametamorphosis.KafkaMetamorphosisException with the given message. Keeps the Java-facing API exception-stable.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |