Class RetryNotFoundPolicyFactory

java.lang.Object
com.adaptris.aws2.RetryNotFoundPolicyFactory
All Implemented Interfaces:
RetryPolicyFactory

public class RetryNotFoundPolicyFactory extends Object implements 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 Details

    • RetryNotFoundPolicyFactory

      public RetryNotFoundPolicyFactory()
  • Method Details

    • build

      public software.amazon.awssdk.core.retry.RetryPolicy build()
      Description copied from interface: RetryPolicyFactory
      Build a retry policy.
      Specified by:
      build in interface RetryPolicyFactory
      Returns:
      the retry policy.