aboutsummaryrefslogtreecommitdiffstats
path: root/src/chameleon/kafka.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/chameleon/kafka.clj')
-rw-r--r--src/chameleon/kafka.clj4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chameleon/kafka.clj b/src/chameleon/kafka.clj
index ae8e77f..bdfc07d 100644
--- a/src/chameleon/kafka.clj
+++ b/src/chameleon/kafka.clj
@@ -36,6 +36,10 @@
(into ["SPEC ERROR"])
(mapv str))))))
+(defn clj-kafka-comsumer?
+ [consumer]
+ (instance? CljKafkaConsumer consumer))
+
(defn subscribe
"Given a CljKafkaConsumer, a channel, and a session timeout (in
ms), return a channel. The input channel is where the messages will