Contextual value represents event create time
Contextual value represents event create time
Contextual value represents timer limiter name
Contextual value represents timer limiter name
(config limiter)
Get the Metrics of this TimeLimiter
Get the Metrics of this TimeLimiter
(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.
(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.
(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.
(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
(name limiter)
Get the name of this TimeLimiter
Get the name of this TimeLimiter
(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.
(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.
(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.
(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.
(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.
(to-future-supplier & body)
Wrap body to a Future Supplier.
Wrap body to a Future Supplier.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close