Liking cljdoc? Tell your friends :D

resilience.timelimiter


*creation-time*clj

Contextual value represents event create time

Contextual value represents event create time
sourceraw docstring

*time-limiter-name*clj

Contextual value represents timer limiter name

Contextual value represents timer limiter name
sourceraw docstring

configclj

(config limiter)

Get the Metrics of this TimeLimiter

Get the Metrics of this TimeLimiter
sourceraw docstring

defregistrycljmacro

(defregistry name)
(defregistry name config)

Define a TimeLimiterRegistry under name with a default or custom circuit breaker configuration.

Please refer to time-limiter-config for allowed key value pairs within the time limiter configuration map.

Define a TimeLimiterRegistry under `name` with a default or custom
circuit breaker configuration.

Please refer to `time-limiter-config` for allowed key value pairs
within the time limiter configuration map.
sourceraw docstring

deftimelimitercljmacro

(deftimelimiter name)
(deftimelimiter name config)

Define a time limiter under name.

Please refer to time-limiter-config for allowed key value pairs within the time limiter configuration.

Define a time limiter under `name`.

Please refer to `time-limiter-config` for allowed key value pairs
within the time limiter configuration.
sourceraw docstring

execute-future-with-time-limitercljmacro

(execute-future-with-time-limiter time-limiter & body)

Execute the following codes with the protection of a time limiter given by time-limiter argument.

Execute the following codes with the protection
of a time limiter given by `time-limiter` argument.
sourceraw docstring

get-all-time-limitersclj

(get-all-time-limiters registry)

Get all time limiters registered to this time limiter registry instance

Get all time limiters registered to this time limiter registry instance
sourceraw docstring

nameclj

(name limiter)

Get the name of this TimeLimiter

Get the name of this TimeLimiter
sourceraw docstring

on-errorclj

(on-error limiter throwable)

Records a failed call. This method must be invoked when a call failed.

Records a failed call. This method must be invoked when a call failed.
sourceraw docstring

on-successclj

(on-success limiter)

Records a successful call. This method must be invoked when a call was successful.

Records a successful call.
This method must be invoked when a call was successful.
sourceraw docstring

registry-with-configclj

(registry-with-config config)

Create a TimeLimiterRegistry with a time limiter configurations map.

Please refer to time-limiter-config for allowed key value pairs within the time limiter configuration map.

Create a TimeLimiterRegistry with a time limiter
configurations map.

Please refer to `time-limiter-config` for allowed key value pairs
within the time limiter configuration map.
sourceraw docstring

set-on-all-event-consumer!clj

(set-on-all-event-consumer! limiter consumer-fn-map)
source

set-on-error-event-consumer!clj

(set-on-error-event-consumer! limiter consumer-fn)
source

set-on-success-event-consumer!clj

(set-on-success-event-consumer! limiter consumer-fn)
source

set-on-timeout-event-consumer!clj

(set-on-timeout-event-consumer! limiter consumer-fn)
source

time-limiterclj

(time-limiter)
(time-limiter config)

Create a time limiter with a default or custom time limiter configuration.

Please refer to time-limiter-config for allowed key value pairs within the time limiter configuration.

Create a time limiter with a default or custom time limiter configuration.

Please refer to `time-limiter-config` for allowed key value pairs
within the time limiter configuration.
sourceraw docstring

time-limiter-configclj

(time-limiter-config opts)

Create a TimeLimiterConfig.

Allowed options are:

  • :timeout-millis Configures the thread execution timeout. Default value is 1 second.

  • :cancel-running-future? Configures whether cancel is called on the running future. Defaults to true.

Create a TimeLimiterConfig.

Allowed options are:
* :timeout-millis
  Configures the thread execution timeout.
  Default value is 1 second.

* :cancel-running-future?
  Configures whether cancel is called on the running future.
  Defaults to true.
 
sourceraw docstring

to-future-suppliercljmacro

(to-future-supplier & body)

Wrap body to a Future Supplier.

Wrap body to a Future Supplier.
sourceraw docstring

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

× close