public interface RetrofitRateLimiter
Call to check with a RateLimiter if a call can be made.
Returns an error response with a HTTP 429 (too many requests) code and a message which indicates
that the client prevented the request.
RetrofitRateLimiter.decorateCall(rateLimiter, call);
| Modifier and Type | Interface and Description |
|---|---|
static class |
RetrofitRateLimiter.RateLimitingCall<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> retrofit2.Call<T> |
decorateCall(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter,
retrofit2.Call<T> call)
Decorate
Calls allow CircuitBreaker functionality. |
static <T> retrofit2.Call<T> decorateCall(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter,
retrofit2.Call<T> call)
Calls allow CircuitBreaker functionality.T - Response type of callrateLimiter - RateLimiter to applycall - Call to decorate