Package com.fullcontact.apilib.retry
Interface RetryHandler
-
- All Known Implementing Classes:
DefaultRetryHandler
public interface RetryHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetRetryAttempts()Specifies Number of Retry Attempts allowedintgetRetryDelayMillis()Specifies Delay time in milliseconds before each retrybooleanshouldRetry(int responseCode)Specifies retry condition based on status code of response
-
-
-
Method Detail
-
shouldRetry
boolean shouldRetry(int responseCode)
Specifies retry condition based on status code of response- Parameters:
responseCode- Response status code- Returns:
- boolean condition for retry
-
getRetryAttempts
int getRetryAttempts()
Specifies Number of Retry Attempts allowed- Returns:
- int: Number of retry attempts
-
getRetryDelayMillis
int getRetryDelayMillis()
Specifies Delay time in milliseconds before each retry- Returns:
- int: Delay time in milliseconds
-
-