Liking cljdoc? Tell your friends :D

resilience4clj-retry

A small Clojure wrapper around the resilience4j Retry module. Requires Clojure 1.9 or later.

clojars badge cljdoc badge

Quick Start

The following code defines a function make-remote-call that will retry in case of a failure using a retry named :some-name and stored in the global registry. If the retry does not already exist, one is created.

(ns myproject.some-client
  (:require [clj-http.client :as http]
            [resilience4clj.retry :refer [with-retry]])

(defn make-remote-call []
  (with-retry :some-name
    (http/get "https://www.example.com")))

Refer to the configuration guide for more information on how to configure the global registry as well as individual retrys.

Refer to the usage guide for more information on how to use retrys.

License

Copyright © 2019-2020 Thomas C. Taylor and contributors.

Distributed under the Eclipse Public License version 2.0.

Can you improve this documentation?Edit on GitHub

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

× close