Liking cljdoc? Tell your friends :D

franzy.clients.consumer.protocols


AutomaticPartitionAssignorcljprotocol

Automatically assigns topic partitions to consumers.

Automatically assigns topic partitions to consumers.

clear-subscriptions!clj

(clear-subscriptions! this)

partition-subscriptionsclj

(partition-subscriptions this)

subscribe-to-partitions!clj

(subscribe-to-partitions! this topics)
(subscribe-to-partitions! this topics opts)
sourceraw docstring

FranzPartitionAssignorcljprotocol

Protocol used for implementors that need a specialized algorithm for assigning partitions to Kafka. Example strategies include by range or round-robin. See franzy.clients.consumer.partitioners examples.

Protocol used for implementors that need a specialized algorithm for assigning partitions to Kafka.
Example strategies include by range or round-robin.
See franzy.clients.consumer.partitioners examples.

assign-partition!clj

(assign-partition! this partitions-per-topic subscriptions)

partition-assignedclj

(partition-assigned this assignment)

partition-assignor-nameclj

(partition-assignor-name this)

partition-subscriptionclj

(partition-subscription this topics)
sourceraw docstring

FranzyConsumercljprotocol

Protocol for implementing a Kafka consumer.

For more details regarding Kafka Consumers, see: https://kafka.apache.org/090/javadoc/org/apache/kafka/clients/consumer/Consumer.html

For an example of the Java implementation of this interface for Kafka 0.9 and above, see: https://kafka.apache.org/090/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html

Protocol for implementing a Kafka consumer.

For more details regarding Kafka Consumers, see:
https://kafka.apache.org/090/javadoc/org/apache/kafka/clients/consumer/Consumer.html

For an example of the Java implementation of this interface for Kafka 0.9 and above, see:
https://kafka.apache.org/090/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html

pause!clj

(pause! this topic-partitions)

poll!clj

(poll! this)
(poll! this opts)

resume!clj

(resume! this topic-partitions)

wakeup!clj

(wakeup! this)
sourceraw docstring

KafkaConsumerRecordscljprotocol

Protocol for behaviors of Kafka result sets (ConsumerRecords)

Protocol for behaviors of Kafka result sets (ConsumerRecords)

record-countclj

(record-count this)

record-partitionsclj

(record-partitions this)

records-by-topicclj

(records-by-topic this topic)

records-by-topic-partitionclj

(records-by-topic-partition this topic-partition)
(records-by-topic-partition this topic partition)
sourceraw docstring

ManualPartitionAssignorcljprotocol

Manually assigns topic partitions to consumers.

Manually assigns topic partitions to consumers.

assign-partitions!clj

(assign-partitions! this topic-partitions)

clear-partition-assignments!clj

(clear-partition-assignments! this)
sourceraw docstring

OffsetCommitercljprotocol

Commits Kafka offsets, typically to Kafka itself or a highly reliable, fast datastore. For example, an implementor may choose with great reservation to commit to Zookeeper. Then divorce. One day someone will appreciate that you can commit.

Commits Kafka offsets, typically to Kafka itself or a highly reliable, fast datastore.
For example, an implementor may choose with great reservation to commit to Zookeeper. Then divorce.
One day someone will appreciate that you can commit.

commit-offsets-async!clj

(commit-offsets-async! this)
(commit-offsets-async! this opts)
(commit-offsets-async! this offsets opts)

commit-offsets-sync!clj

(commit-offsets-sync! this)
(commit-offsets-sync! this offsets)

committed-offsetsclj

(committed-offsets this topic-partition)
sourceraw docstring

PartitionAssignablecljprotocol

Capable of being assigned, and thus auditing assigned partitions.

Capable of being assigned, and thus auditing assigned partitions.

assigned-partitionsclj

(assigned-partitions this)
sourceraw docstring

SeekableLogcljprotocol

Protocol for a log, such as Kafka that is positionally seekable.

Protocol for a log, such as Kafka that is positionally seekable.

next-offsetclj

(next-offset this topic-partition)

seek-to-beginning-offset!clj

(seek-to-beginning-offset! this topic-partitions)

seek-to-end-offset!clj

(seek-to-end-offset! this topic-partitions)

seek-to-offset!clj

(seek-to-offset! this topic-partition offset)
sourceraw docstring

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

× close