Class MaxAttemptsResolver
java.lang.Object
software.amazon.awssdk.core.internal.retry.MaxAttemptsResolver
Resolves the retry max attempts from
SdkSystemSetting.AWS_MAX_ATTEMPTS and ProfileProperty.MAX_ATTEMPTS.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprofileFile(Supplier<ProfileFile> profileFile) Configure the profile file that should be used when determining the max attempts.profileName(String profileName) Configure the profile file name should be used when determining the max attempts.resolve()Resolve the max attempts based on the configured values.
-
Constructor Details
-
MaxAttemptsResolver
public MaxAttemptsResolver()
-
-
Method Details
-
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
Configure the profile file name should be used when determining the max attempts. -
resolve
Resolve the max attempts based on the configured values. If not configured, returnsnull.
-