Liking cljdoc? Tell your friends :D
Clojure only.

prevayler-clj.prevayler4


Prevaylercljprotocol

handle!clj

(handle! this event)

Journals the event, applies the business function to the state and the event; and returns the new state.

Journals the event, applies the business function to the state and the event; and returns the new state.

timestampclj

(timestamp this)

Calls the timestamp-fn

Calls the timestamp-fn
source

prevayler!clj

(prevayler! {:keys [initial-state business-fn timestamp-fn journal-file]
             :or {initial-state {}
                  timestamp-fn (fn* [] (System/currentTimeMillis))
                  journal-file (File. "journal4")}})
source

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

× close