Package com.adaptris.aws2
Class RetryNotFoundPolicyFactory
java.lang.Object
com.adaptris.aws2.RetryNotFoundPolicyFactory
- All Implemented Interfaces:
RetryPolicyFactory
Allows you to configure additional HTTP codes that determine whether a retry should be attempted or not.
Sometimes you end up in a situation where you get a 404 exception even though the file exists (and invocations merely a few seconds later are successful). This may well be down to a timing issue and/or issues with a transparent proxy configuration. Use this builder to allow you automatically retry operations based on a 404.
- Since:
- 4.3.0
In the adapter configuration file this class is aliased as aws2-retry-not-found-policy-factory which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.core.retry.RetryPolicybuild()Build a retry policy.
-
Constructor Details
-
RetryNotFoundPolicyFactory
public RetryNotFoundPolicyFactory()
-
-
Method Details
-
build
public software.amazon.awssdk.core.retry.RetryPolicy build()Description copied from interface:RetryPolicyFactoryBuild a retry policy.- Specified by:
buildin interfaceRetryPolicyFactory- Returns:
- the retry policy.
-