Class ExponentialDelayRetryStrategy
java.lang.Object
com.amilesend.client.connection.retry.ExponentialDelayRetryStrategy
- All Implemented Interfaces:
RetryStrategy
An exponential-delay-based 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, validateResponseCode
-
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
-