(deftype SlidingBuffer [^LinkedList buf ^long n]
impl/UnblockingBuffer
impl/Buffer
(full? [this]
false)
(remove! [this]
(.removeLast buf))
(add!* [this itm]
(when (= (.size buf) n)
(impl/remove! this))
(.addFirst buf itm)
this)
(close-buf! [this])
clojure.lang.Counted
(count [this]
(.size buf)))