Class NoRetryStrategy
java.lang.Object
com.amilesend.client.connection.retry.NoRetryStrategy
- All Implemented Interfaces:
RetryStrategy
Defines a default no retry strategy implementation.
- See Also:
-
Field Summary
Fields inherited from interface RetryStrategy
DEFAULT_RETRY_AFTER_SECONDS, THROTTLED_RESPONSE_CODE, THROTTLED_RETRY_AFTER_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes 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.
-
Constructor Details
-
NoRetryStrategy
public NoRetryStrategy()
-
-
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
-