(discard! queue entry-ids)
Inputs: [queue :- Stockpile entry-ids :- [schema/Int]]
Inputs: [queue :- Stockpile entry-ids :- [schema/Int]]
(init-queue dir)
Initialize a queue. The dir
is expected to exist and be writable.
Initialize a queue. The `dir` is expected to exist and be writable.
(purge-queue! queue)
Inputs: [queue :- Stockpile]
Inputs: [queue :- Stockpile]
(read-entry queue message-id)
Read a message from the queue. This does not remove it from the queue, but just reads a message by id.
Read a message from the queue. This does not remove it from the queue, but just reads a message by id.
(reduce-entries queue f val)
Reduce over the entries. The reducer function should expect to get entry ids.
Reduce over the entries. The reducer function should expect to get entry ids.
(store queue object)
Inputs: [queue :- puppetlabs.stockpile.queue.Stockpile object :- (schema/if (fn* [p1__8418#] (contains? p1__8418# "event")) internal-api/Event internal-api/Snapshot)] Returns: (schema/protocol stockpile/Entry)
Store a message on the queue. The queue should already be initialized. The message should be a map. This returns a message id that can be used to retrieve the message.
Inputs: [queue :- puppetlabs.stockpile.queue.Stockpile object :- (schema/if (fn* [p1__8418#] (contains? p1__8418# "event")) internal-api/Event internal-api/Snapshot)] Returns: (schema/protocol stockpile/Entry) Store a message on the queue. The queue should already be initialized. The message should be a map. This returns a message id that can be used to retrieve the message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close