Liking cljdoc? Tell your friends :D

clj-tape.core


Convertercljprotocol

fromclj

(from _ bytes)

Convert from byte array

Convert from byte array

toclj

(to _ obj)

Convert to byte array

Convert to byte array
source

make-object-queueclj

(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.
sourceraw docstring

make-queueclj

(make-queue queue-file)
(make-queue queue-file converter)
source

make-queue-fileclj

(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.
sourceraw docstring

Queuecljprotocol

Protocol for queues, either object or simple binary data

Protocol for queues, either object or simple binary data

is-empty?clj

(is-empty? _)

Return true if the queue is empty.

Return true if the queue is empty.

remove!clj

(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.

peekclj

(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!clj

(close! _)

Close the queue.

Close the queue.

clear!clj

(clear! _)

Clear the queue of all entries.

Clear the queue of all entries.

sizeclj

(size _)

Return count of items in queue

Return count of items in queue

as-listclj

(as-list _)

Peek at all entries in the queue, as a sequence.

Peek at all entries in the queue, as a sequence.

delete!clj

(delete! _)

Close the queue and delete its persistent backing file.

Close the queue and delete its persistent backing file.

put!clj

(put! _ data)

Put an object into the queue.

Put an object into the queue.
sourceraw docstring

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

× close