Liking cljdoc? Tell your friends :D

avout.core


alter!!clj

(alter!! ref f & args)

Distributed version of Clojure's alter function.

Distributed version of Clojure's alter function.
sourceraw docstring

commute!!clj

(commute!! ref f & args)

Distributed version of Clojure's commute function. Temporarily implemented using alter!! instead of the optimized semantics of Clojure's commute.

Distributed version of Clojure's commute function. Temporarily implemented
using alter!! instead of the optimized semantics of Clojure's commute.
sourceraw docstring

compare-and-set!!clj

(compare-and-set!! atom old-value new-value)

Cannot use standard reset! because Clojure expects a clojure.lang.Atom.

Cannot use standard reset! because Clojure expects a clojure.lang.Atom.
sourceraw docstring

connectclj

(connect & args)

Returns a ZooKeeper client, and initializes the STM if it doesn't already exist.

Returns a ZooKeeper client, and initializes the STM if it doesn't already exist.
sourceraw docstring

dosync!!cljmacro

(dosync!! client & body)

Distributed version of Clojure's dosync macro.

Distributed version of Clojure's dosync macro.
sourceraw docstring

init-stmclj

(init-stm client)

Called the first time the STM is used, creates necessary ZooKeeper nodes.

Called the first time the STM is used, creates necessary ZooKeeper nodes.
sourceraw docstring

local-refclj

(local-ref client name)
(local-ref client name init-value & {:keys [validator]})

Returns an instance of an Avout Ref that holds its state locally, but can be used in dosync!! transactions with distributed Refs since Avout Refs cannot participate in dosync transactions with Clojure's in-memory Refs.

Returns an instance of an Avout Ref that holds its state locally, but can
be used in dosync!! transactions with distributed Refs since Avout Refs
cannot participate in dosync transactions with Clojure's in-memory Refs.
sourceraw docstring

ref-set!!clj

(ref-set!! ref value)

Distributed version of Clojure's ref-set function.

Distributed version of Clojure's ref-set function.
sourceraw docstring

reset!!clj

(reset!! atom new-value)

Cannot use standard reset! because Clojure expects a clojure.lang.Atom.

Cannot use standard reset! because Clojure expects a clojure.lang.Atom.
sourceraw docstring

reset-stmclj

(reset-stm client)

Used to clear and re-initialize the STM.

Used to clear and re-initialize the STM.
sourceraw docstring

swap!!clj

(swap!! atom f & args)

Cannot use standard swap! because Clojure expects a clojure.lang.Atom.

Cannot use standard swap! because Clojure expects a clojure.lang.Atom.
sourceraw docstring

zk-atomclj

(zk-atom client name)
(zk-atom client name init-value & {:keys [validator]})

Returns an instance of an Avout distributed Atom that uses a ZooKeeper data field to hold its state and Clojure's printer/reader (pr-str/read-string) for serialization. Note: ZooKeeper has a 1 megabyte limit on the size of data in its data fields.

Returns an instance of an Avout distributed Atom that uses a ZooKeeper data field
to hold its state and Clojure's printer/reader (pr-str/read-string) for
serialization. Note: ZooKeeper has a 1 megabyte limit on the size of data in its
data fields.
sourceraw docstring

zk-refclj

(zk-ref client name)
(zk-ref client name init-value & {:keys [validator]})

Returns an instance of an Avout distributed Ref that uses a ZooKeeper data field to hold its state and Clojure's printer/reader (pr-str/read-string) for serialization. Note: ZooKeeper has a 1 megabyte limit on the size of data in its data fields.

Returns an instance of an Avout distributed Ref that uses a ZooKeeper data field
to hold its state and Clojure's printer/reader (pr-str/read-string) for
serialization. Note: ZooKeeper has a 1 megabyte limit on the size of data in its
data fields.
sourceraw docstring

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

× close