Liking cljdoc? Tell your friends :D

clj-aiven.lag-metrics-poller


record-lag-metricsclj

(record-lag-metrics {:keys [metrics-registry aiven-conf retry-config
                            application-id metric-key topic]
                     :as _opts})
source

start-pollingclj

(start-polling {:keys [every-period-ms] :or {every-period-ms 300000} :as opts})
source

with-exp-backoffcljmacro

(with-exp-backoff config & body)

A cute little macro to please Dr. Dutton. So that he doesn't have to type #

A cute little macro to please Dr. Dutton. So that he doesn't have to type `#`
sourceraw docstring

with-exp-backoff-fnclj

(with-exp-backoff-fn f)
(with-exp-backoff-fn
  {:keys [initial-delay-ms delay-multiplier max-retries]
   :or {initial-delay-ms 1000 delay-multiplier 2.5 max-retries 3}}
  f)

Retries (f) up to max-retries, waiting initial-delay-ms for the first retry and then with exponential larger waits (multiplied by delay-multiplier). NOTE: f must throw to trigger a retry

Retries (f) up to `max-retries`, waiting `initial-delay-ms` for the first retry
and then with exponential larger waits (multiplied by `delay-multiplier`).
NOTE: f *must* throw to trigger a retry
sourceraw docstring

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

× close