Index

A C D E G H I L M N O R S T 
All Classes and Interfaces|All Packages|Constant Field Values

A

apply(HttpServletResponse) - Method in class com.maybeitssquid.retry.RetryAfterParser
Parser to recognize the Retry-After formats defined in section 5.6.6 of RFC-9110 and convert the value to a duration.
apply(Integer, Either<Throwable, HttpServletResponse>) - Method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Checks for an HTTP response with a Retry-After header, and computes the required wait interval.
ASCTIME - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Forgiving parer for a superset of ASCTIME dates.
atLeast(long) - Static method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Heeds the Retry-After header with a required minimum wait.
atLeast(Duration) - Static method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Heeds the Retry-After header with a required minimum wait.

C

com.maybeitssquid.retry - module com.maybeitssquid.retry
HTTP retry utilities with Resilience4j integration, including support for the Retry-After response header.
com.maybeitssquid.retry - package com.maybeitssquid.retry
 
com.maybeitssquid.retry.resilience4j - package com.maybeitssquid.retry.resilience4j
 

D

DECIMAL_SECONDS - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Accept extended Retry-After header that allows decimal seconds.
decimalSeconds() - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts Retry-After headers with a potentially decimal number of seconds to wait.
defaulted() - Static method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Heeds the Retry-After header with a wait of RetryConfig.DEFAULT_WAIT_DURATION if none is required by a header.

E

extended() - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts Retry-After headers that meet a superset of RFC-9110, including headers with a decimal number of seconds delay.
extended(InstantSource) - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts Retry-After headers that meet a superset of RFC-9110, including headers with a decimal number of seconds delay and ISO-8601 instants.

G

getMaximum() - Method in class com.maybeitssquid.retry.LimitRetryAfter
Gets the maximum wait interval allowed

H

heed() - Static method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Heeds the Retry-After header with no wait if none is required by a header.
heed(IntervalBiFunction<HttpServletResponse>) - Static method in class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Extends an IntervalBiFunction to heed any Retry-After header in the response.
HeedRetryAfter - Class in com.maybeitssquid.retry.resilience4j
Function that extends the wait interval specified by a wrapped IntervalBiFunction so that it respects any Retry-After header that was returned in an HTTP response.
HeedRetryAfter(IntervalBiFunction<HttpServletResponse>) - Constructor for class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Creates a wrapper using the extended header definitions.
HeedRetryAfter(IntervalBiFunction<HttpServletResponse>, Function<HttpServletResponse, Optional<Duration>>) - Constructor for class com.maybeitssquid.retry.resilience4j.HeedRetryAfter
Creates a wrapper using the extended header definitions.

I

idempotent(int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response.
idempotent(int...) - Static method in class com.maybeitssquid.retry.RetryStatusCodes
Returns a predicate with default decisions for an idempotent service.
idempotent(Duration, int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response and whether any {code Retry-After} header allows for a retry within an acceptable interval, and adds an IntervalBiFunction to extend the wait interval as needed.
IMF_FIXDATE - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Forgiving parser for a superset of IMF-fixdate using the builtin DateTimeFormatter.RFC_1123_DATE_TIME
ISO - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Parser for ISO-8601 dates.

L

LimitRetryAfter - Class in com.maybeitssquid.retry
Predicate to prevent a retry if there is a Retry-After header that specifies too long a wait interval.
LimitRetryAfter(Duration, Function<HttpServletResponse, Optional<Duration>>) - Constructor for class com.maybeitssquid.retry.LimitRetryAfter
Creates a predicate to limit intervals requested by an HTTP Retry-After header.
LOGGER - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Logger for errors during parsing, particularly to diagnose a misbehaving server.

M

maximum(long) - Static method in class com.maybeitssquid.retry.LimitRetryAfter
Convenience wrapper to express the limit in milliseconds.
maximum(Duration) - Static method in class com.maybeitssquid.retry.LimitRetryAfter
Creates a predicate to limit intervals requested by an HTTP Retry-After header, using an extended parser.

N

nonIdempotent(int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response.
nonIdempotent(int...) - Static method in class com.maybeitssquid.retry.RetryStatusCodes
Returns a predicate with default decisions for a non-idempotent service.
nonIdempotent(Duration, int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response and whether any {code Retry-After} header allows for a retry within an acceptable interval, and adds an IntervalBiFunction to extend the wait interval as needed.

O

only(int...) - Static method in class com.maybeitssquid.retry.RetryStatusCodes
Returns a predicate that allows retry for only the explicitly provided status codes.
onlyCodes(int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response.
onlyCodes(Duration, int...) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds a Predicate that decides whether to retry based on the HTTP status code in the response and whether any {code Retry-After} header allows for a retry within an acceptable interval, and adds an IntervalBiFunction to extend the wait interval as needed.

R

retries(int) - Method in class com.maybeitssquid.retry.RetryStatusCodes
Returns whether the status code allows a retry.
Retry - Interface in com.maybeitssquid.retry.resilience4j
Factories for common configurations.
RETRY_AFTER_HEADER - Static variable in class com.maybeitssquid.retry.RetryAfterParser
The Retry-After header name.
retryAfter() - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds an IntervalBiFunction that respects any Retry-After header provided in the response, without limit.
retryAfter(Duration) - Static method in interface com.maybeitssquid.retry.resilience4j.Retry
Adds an IntervalBiFunction that respects any Retry-After header provided in the response, and adds a predicate to ensure the wait does not exceed the limit.
RetryAfterParser - Class in com.maybeitssquid.retry
Parses an HTTP Retry-After header to determine how long to wait before retrying.
RetryStatusCodes - Class in com.maybeitssquid.retry
Predicate to decide whether a retry is allowable based on the HTTP response code.
RFC_850 - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Forgiving parer for a superset of RFC-850 dates.

S

SC_TOO_EARLY - Static variable in class com.maybeitssquid.retry.RetryStatusCodes
The HTTP status code for a retry being too early.
SC_TOO_MANY_REQUESTS - Static variable in class com.maybeitssquid.retry.RetryStatusCodes
The HTTP status code for a server complaining of too many requests.
secondsOnly() - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts only Retry-After headers with an integer number of seconds to wait.
strict() - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts only Retry-After headers that meet a reasonably strict interpretation of RFC-9110.
strict(InstantSource) - Static method in class com.maybeitssquid.retry.RetryAfterParser
Parser that accepts only Retry-After headers that meet a reasonably strict interpretation of RFC-9110.
STRICT_SECONDS - Static variable in class com.maybeitssquid.retry.RetryAfterParser
Accept Retry-After header that matches only strict RFC 7231 delay-seconds.

T

test(HttpServletResponse) - Method in class com.maybeitssquid.retry.LimitRetryAfter
Tests whether there is a Retry-After header that would exceed the limit.
test(HttpServletResponse) - Method in class com.maybeitssquid.retry.RetryStatusCodes
Tests whether the HTTP response status allows for a retry.
A C D E G H I L M N O R S T 
All Classes and Interfaces|All Packages|Constant Field Values