Class MaxAttemptsResolver

java.lang.Object
software.amazon.awssdk.core.internal.retry.MaxAttemptsResolver

@SdkInternalApi public class MaxAttemptsResolver extends Object
Resolves the retry max attempts from SdkSystemSetting.AWS_MAX_ATTEMPTS and ProfileProperty.MAX_ATTEMPTS.
  • Constructor Details

    • MaxAttemptsResolver

      public MaxAttemptsResolver()
  • Method Details

    • profileFile

      public MaxAttemptsResolver profileFile(Supplier<ProfileFile> profileFile)
      Configure the profile file that should be used when determining the max attempts. The supplier is only consulted if a higher-priority determinant (e.g. environment variables) does not find the setting.
    • profileName

      public MaxAttemptsResolver profileName(String profileName)
      Configure the profile file name should be used when determining the max attempts.
    • resolve

      public Integer resolve()
      Resolve the max attempts based on the configured values. If not configured, returns null.