Skip to content

A small Clojure wrapper around the resilience4j TimeLimiter module

License

Notifications You must be signed in to change notification settings

tessellator/resilience4clj-timelimiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resilience4clj-timelimiter

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

clojars badge cljdoc badge

Quick Start

The following code defines a function perform-calculation that uses a time limiter named :some-name and stored in the global registry. If the time limiter does not already exist, one is created.

(ns myproject.some-client
  (:require [resilience4clj.time-limiter :refer [with-time-limiter]])

(defn perform-calculation []
  (with-time-limiter :some-name
    ;; some expensive calculations
  ))

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

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

License

Copyright © 2020 Thomas C. Taylor and contributors.

Distributed under the Eclipse Public License version 2.0.

About

A small Clojure wrapper around the resilience4j TimeLimiter module

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published