- All Known Implementing Classes:
SimpleRetryHandler
public interface RetryHandler
Define how retry should occur on a request.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisExceptionRetry(int retryCount, HttpException exception) Return true if the request should be retried.booleanisRetry(int retryCount, HttpResponse<?> response) Return true if the request should be retried.
-
Method Details
-
isRetry
Return true if the request should be retried.- Parameters:
retryCount- The number of retry attempts already executedresponse- The HTTP response- Returns:
- True if the request should be retried or false if not
-
isExceptionRetry
Return true if the request should be retried.- Parameters:
retryCount- The number of retry attempts already executedexception- The Wrapped Error thrown by the underlying Http Client- Returns:
- True if the request should be retried or false if not
-