(from _ bytes)
Convert from byte array
Convert from byte array
(to _ obj)
Convert to byte array
Convert to byte array
(make-object-queue)
(make-object-queue queue-file)
Make an object queue. With no args, make an in-memory queue. With a queue-file arg (coercible to java.io.File via clojure.java.io/as-file), makes a persistent queue.
Make an object queue. With no args, make an in-memory queue. With a queue-file arg (coercible to java.io.File via clojure.java.io/as-file), makes a persistent queue.
(make-queue-file file)
Make a Tape2 QueueFile. file must be coerceable to a java.io.File, via clojure.java.io/as-file.
Make a Tape2 QueueFile. file must be coerceable to a java.io.File, via clojure.java.io/as-file.
Protocol for queues, either object or simple binary data
Protocol for queues, either object or simple binary data
(is-empty? _)
Return true if the queue is empty.
Return true if the queue is empty.
(remove! _)
(remove! _ n)
Remove the first entry from the queue, or upto n entries in the queue.
Remove the first entry from the queue, or upto n entries in the queue.
(peek _)
(peek _ n)
Peek at the first entry in the queue, or upto n entries in the queue.
Peek at the first entry in the queue, or upto n entries in the queue.
(close! _)
Close the queue.
Close the queue.
(clear! _)
Clear the queue of all entries.
Clear the queue of all entries.
(size _)
Return count of items in queue
Return count of items in queue
(as-list _)
Peek at all entries in the queue, as a sequence.
Peek at all entries in the queue, as a sequence.
(delete! _)
Close the queue and delete its persistent backing file.
Close the queue and delete its persistent backing file.
(put! _ data)
Put an object into the queue.
Put an object into the queue.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close