@FunctionalInterface public interface RateLimitStrategy
HttpClientResponse and a Duration representing a delay due to rate limiting.| Modifier and Type | Method and Description |
|---|---|
Duration |
apply(HttpClientResponse response)
Apply this function to a
HttpClientResponse to obtain a Duration representing a delay due to
rate limiting. |
Duration apply(HttpClientResponse response)
HttpClientResponse to obtain a Duration representing a delay due to
rate limiting.response - the original HttpClientResponseDuration indicating rate limiting, can be Duration.ZERO if no limit is present