Liking cljdoc? Tell your friends :D

ziggurat.messaging.consumer


consumersclj

consumers is a map containing channel and consumer tags for stream and batch routes. One channel is used for all the subscribers and is preserved until shutdown. We have to preserve the channel because for cancelling a subscription, rabbitmq requires the same channel that created the consumer tag for the subscription.

consumers is a map containing channel and consumer tags for stream and batch routes. One channel is used
for all the subscribers and is preserved until shutdown. We have to preserve the
channel because for cancelling a subscription, rabbitmq requires the same channel
that created the consumer tag for the subscription.
sourceraw docstring

convert-and-ack-messageclj

(convert-and-ack-message ch
                         {:keys [delivery-tag]}
                         payload
                         ack?
                         topic-entity
                         ziggurat-channel-key)

De-serializes the message payload (payload) using nippy/thaw and converts it to MessagePayload. Acks the message if ack? is true.

De-serializes the message payload (`payload`) using `nippy/thaw` and converts it to `MessagePayload`. Acks the message
if `ack?` is true.
sourceraw docstring

DEFAULT_CHANNEL_PREFETCH_COUNTclj

source

delete-dead-set-messagesclj

(delete-dead-set-messages topic-entity channel count)

This method deletes count number of messages from RabbitMQ dead-letter queue for topic topic-entity and channel channel.

This method deletes `count` number of messages from RabbitMQ dead-letter queue for topic `topic-entity` and channel
`channel`.
sourceraw docstring

get-dead-set-messagesclj

(get-dead-set-messages topic-entity count)
(get-dead-set-messages topic-entity channel count)

This method can be used to read and optionally ack messages in dead-letter queue, based on the value of ack?.

For example, this method can be used to delete messages from dead-letter queue if ack? is set to true.

This method can be used to read and optionally ack messages in dead-letter queue, based on the value of `ack?`.

For example, this method can be used to delete messages from dead-letter queue if `ack?` is set to true.
sourceraw docstring

process-dead-set-messagesclj

(process-dead-set-messages topic-entity count processing-fn)
(process-dead-set-messages topic-entity channel count processing-fn)

This method reads and processes count number of messages from RabbitMQ dead-letter queue for topic topic-entity and channel specified by channel. Executes processing-fn for every message read from the queue.

This method reads and processes `count` number of messages from RabbitMQ dead-letter queue for topic `topic-entity` and
channel specified by `channel`. Executes `processing-fn` for every message read from the queue.
sourceraw docstring

process-message-from-queueclj

(process-message-from-queue ch
                            meta
                            payload
                            topic-entity
                            processing-fn
                            ziggurat-channel-key)
source

read-message-from-queueclj

(read-message-from-queue ch queue-name topic-entity ack? ziggurat-channel-key)
source

start-channels-subscriberclj

(start-channels-subscriber channels topic-entity)
source

start-retry-subscriber*clj

(start-retry-subscriber* handler-fn topic-entity)
source

start-subscribersclj

(start-subscribers stream-routes batch-routes)

Starts the subscriber to the instant queue of the rabbitmq

Starts the subscriber to the instant queue of the rabbitmq
sourceraw docstring

stop-subscribersclj

(stop-subscribers subscribers additional-message)
source

stop-subscribers-for-consumersclj

(stop-subscribers-for-consumers consumers)
source

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

× close