Liking cljdoc? Tell your friends :D

sv.gcloud.client.middleware.retry


default-retry-strategyclj

(default-retry-strategy)

The default retry strategy: an exponential-backoff with a max-duration of 10 seconds and a maximum of 10 retries.

The default retry strategy: an exponential-backoff with a
max-duration of 10 seconds and a maximum of 10 retries.
sourceraw docstring

http-status-5xx?clj

(http-status-5xx? status-code)

Is the status code 5xx (500-599)

Is the status code 5xx (500-599)
sourceraw docstring

http-status-retry?clj

(http-status-retry? status-code)

Is the status code either a 5xx or a too many request (429).

Is the status code either a 5xx or a `too many request` (429).
sourceraw docstring

http-status-too-many-requestsclj

source

retry?clj

(retry? request response)

Default retry? for wrap-retry middleware. Is the status code of the response either a 5xx or a too many request (429).

Default `retry?` for `wrap-retry` middleware. Is the status code
of the response either a 5xx or a `too many request` (429).
sourceraw docstring

wrap-retryclj

(wrap-retry client)
(wrap-retry client retry-strategy)
(wrap-retry client retry-strategy retry?)

Middleware that retries the request, if (retry? request response) returns true. The retry-strategy function should return a sequence of millisecond amounts, for example: [200 1000] means wait 200 ms after the first and 1 second after the second request.

Read more about retryable request in the context of Google Cloud Platform here:

https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy

Middleware that retries the request, if (retry? request response)
returns true. The retry-strategy function should return a sequence
of millisecond amounts, for example: `[200 1000]` means wait 200 ms
after the first and 1 second after the second request.

Read more about retryable request in the context of Google Cloud
Platform here:

https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy
sourceraw docstring

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

× close