Liking cljdoc? Tell your friends :D

kafka-metamorphosis.java.kafka-producer-wrapper

Java-facing wrapper around kafka-metamorphosis.producer.

Emits the concrete class io.github.caioclavico.kafkametamorphosis.KafkaProducerWrapper via :gen-class. Java callers use it as any normal Java class:

try (KafkaProducerWrapper p = new KafkaProducerWrapper()) { p.publish("orders.new", "123", "{"ticker":"PETR4"}"); }

No clojure.java.api.Clojure, no IFn.invoke, no reflection on the Java side.

Java-facing wrapper around kafka-metamorphosis.producer.

Emits the concrete class
  io.github.caioclavico.kafkametamorphosis.KafkaProducerWrapper
via :gen-class. Java callers use it as any normal Java class:

  try (KafkaProducerWrapper p = new KafkaProducerWrapper()) {
      p.publish("orders.new", "123", "{\"ticker\":\"PETR4\"}");
  }

No clojure.java.api.Clojure, no IFn.invoke, no reflection on the
Java side.
raw docstring

kpw-closeclj

(kpw-close this)
source

kpw-initclj

(kpw-init)
(kpw-init arg)

Multi-arity init covering all declared :constructors signatures.

Multi-arity init covering all declared :constructors signatures.
sourceraw docstring

kpw-publish-String-Stringclj

(kpw-publish-String-String this topic value)
source

kpw-publish-String-String-Stringclj

(kpw-publish-String-String-String this topic key value)
source

kpw-publishJsonclj

(kpw-publishJson this topic key json-value)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close