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.
(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.
(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`.
(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.
(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.
(process-message-from-queue ch
meta
payload
topic-entity
processing-fn
ziggurat-channel-key)
(read-message-from-queue ch queue-name topic-entity ack? ziggurat-channel-key)
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close