Liking cljdoc? Tell your friends :D

circuit-breaker.core


circuit-breakers-configclj

source

circuit-breakers-countersclj

source

circuit-breakers-openclj

source

defncircuitbreakerclj

(defncircuitbreaker circuit-name settings)
source

failure-countclj

(failure-count circuit-name)
source

record-failure!clj

(record-failure! circuit-name)
source

record-success!clj

(record-success! circuit-name)
source

reset-all-circuit-counters!clj

(reset-all-circuit-counters!)
source

reset-all-circuits!clj

(reset-all-circuits!)
source

tripped?clj

(tripped? circuit-name)
source

with-circuit-breakerclj

(with-circuit-breaker circuit {:keys [tripped connected]})

If circuit breaker is tripped, run tripped, else run connected. If the connected function throws an error, it won't cause the circuit to trip.

If circuit breaker is tripped, run tripped, else run connected. If the
connected function throws an error, it won't cause the circuit to trip.
sourceraw docstring

wrap-with-circuit-breakerclj

(wrap-with-circuit-breaker circuit-name method-that-might-error)
(wrap-with-circuit-breaker circuit-name method-that-might-error tripped-method)

If specified circuit breaker isn't tripped, run method-that-might-error. If circuit breaker is tripped, run tripped-method if specified, else return nil.

If specified circuit breaker isn't tripped, run method-that-might-error. If
circuit breaker is tripped, run tripped-method if specified, else return
nil.
sourceraw docstring

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

× close