API for cognitect.aws.retry - aws-api


Full namespace name: cognitect.aws.retry

Overview





Public Variables and Functions



capped-exponential-backoff

function
Usage: (capped-exponential-backoff base max-backoff max-retries)
Returns a function of the num-retries (so far), which returns the
lesser of max-backoff and an exponentially increasing multiple of
base, or nil when (>= num-retries max-retries).
See with-retry to see how it is used.

Alpha. Subject to change.


default-backoff

var

  
Returns (capped-exponential-backoff 100 20000 3).

Alpha. Subject to change.


default-retriable?

var

  
A fn of an http-response map which returns a truthy value
if (:cognitect.anomalies/category http-response) is any of:
  - :cognitect.anomalies/busy
  - :cognitect.anomalies/interrupted
  - :cognitect.anomalies/unavailable

Alpha. Subject to change.
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.