- All Implemented Interfaces:
This class is considered internal! For external purposes we recommend extending the
and only failing on certain
RetryReason as needed or based on a request context or external property. Using
this strategy here directly, if not used carefully, will lead to lot of copy/pasting of try/catch blocks and not
to clean code.
INSTANCEpublic static final FailFastRetryStrategy INSTANCE
shouldRetrypublic CompletableFuture<RetryAction> shouldRetry
(Request<? extends Response> request, RetryReason reason)Description copied from interface:
RetryStrategyChecks if the given request should be retried and how long the retry delay should be.
toStringpublic String toString()