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, validateResponseCode
-
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
-