Class FixedDelayRetryStrategy
java.lang.Object
com.amilesend.client.connection.retry.FixedDelayRetryStrategy
- All Implemented Interfaces:
RetryStrategy
A fixed-delay retry strategy.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface RetryStrategy
DEFAULT_RETRY_AFTER_SECONDS, THROTTLED_RESPONSE_CODE, THROTTLED_RETRY_AFTER_HEADER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Executes the strategy to invoke theRetriableCallResponsecall.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RetryStrategy
extractRetryAfterHeaderValue, validateResponseCodeModifier and TypeMethodDescriptiondefault LongextractRetryAfterHeaderValue(okhttp3.Response response) Extracts the defined throttle retry value from the response header, or the default if none is defined.default voidvalidateResponseCode(okhttp3.Response response) Validates the response code for a response.
-
Method Details
-
invoke
Description copied from interface:RetryStrategyExecutes the strategy to invoke theRetriableCallResponsecall.- Specified by:
invokein interfaceRetryStrategy- Parameters:
retriable- the call to invoke- Returns:
- the response
-
builder
-