(alter!! ref f & args)
Distributed version of Clojure's alter function.
Distributed version of Clojure's alter function.
(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.
(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.
(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.
(dosync!! client & body)
Distributed version of Clojure's dosync macro.
Distributed version of Clojure's dosync macro.
(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.
(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.
(ref-set!! ref value)
Distributed version of Clojure's ref-set function.
Distributed version of Clojure's ref-set function.
(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.
(reset-stm client)
Used to clear and re-initialize the STM.
Used to clear and re-initialize the STM.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close