Liking cljdoc? Tell your friends :D

safely.circuit-breaker


allow-this-request?cljmultimethod

source

circuit-breaker-infoclj

(circuit-breaker-info)
(circuit-breaker-info circuit-breaker-name)

It returns a map with information regarding one circuit breaker (if a name is specified) or all of them. the structure contains the status, some counters, and sampled responses.

It returns a map with information regarding one circuit breaker
(if a name is specified) or all of them. the structure contains
the status, some counters, and sampled responses.
sourceraw docstring

counters-totalsclj

(counters-totals counters last-n-seconds)

Takes in input a map of counters as defined in the cb-state, and the number of seconds to take into consideration and it returns the total of each metric for the given time range.

Takes in input a map of counters as defined in the cb-state,
and the number of seconds to take into consideration and
it returns the total of each metric for the given time range.
sourceraw docstring

evaluate-statecljmultimethod

This function takes a circuit-breaker state value and depending of :circuit-breaker-strategy in the :config it select a different evaluation strategy to determine whether the circuit breaker should be closed (true) or open (false)

This function takes a circuit-breaker state value and depending
of `:circuit-breaker-strategy` in the `:config` it select a
different evaluation strategy to determine whether the circuit
breaker should be closed (`true`) or open (`false`)
sourceraw docstring

execute-with-circuit-breakerclj

(execute-with-circuit-breaker f
                              {:keys [circuit-breaker timeout cancel-on-timeout]
                               :as options})

Execute a thunk f in a circuit-breaker pool

Execute a thunk `f` in a circuit-breaker pool
sourceraw docstring

nowclj

Returns the current system clock time as number of seconds or milliseconds from EPOCH.

Returns the current system clock time as number of
seconds or milliseconds from EPOCH.
sourceraw docstring

shutdown-poolsclj

(shutdown-pools)
(shutdown-pools pool-name)

It shuts down, forcefully, all the circuit-breaker active pools. If you provide a pool-name it will shutdown only the specified one.

It shuts down, forcefully, all the circuit-breaker active pools.
If you provide a `pool-name` it will shutdown only the specified one.
sourceraw docstring

sum-countersclj

(sum-counters)
(sum-counters c1)
(sum-counters {s1 :success e1 :error t1 :timeout r1 :rejected o1 :open}
              {s2 :success e2 :error t2 :timeout r2 :rejected o2 :open})
source

transition-statecljmultimethod

source

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

× close