Class RetryMode.Resolver
java.lang.Object
software.amazon.awssdk.core.retry.RetryMode.Resolver
- Enclosing class:
RetryMode
Allows customizing the variables used during determination of a
RetryMode. Created via RetryMode.resolver().-
Method Summary
Modifier and TypeMethodDescriptiondefaultNewRetries2026(Boolean defaultNewRetries2026) Deprecated.The standard and adaptive retry modes use retry behavior 2.1.defaultRetryMode(RetryMode defaultRetryMode) Configure theRetryModethat should be used if the mode is not specified anywhere else.profileFile(Supplier<ProfileFile> profileFile) Configure the profile file that should be used when determining theRetryMode.profileName(String profileName) Configure the profile file name should be used when determining theRetryMode.resolve()Resolve which retry mode should be used, based on the configured values.
-
Method Details
-
profileFile
Configure the profile file that should be used when determining theRetryMode. 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 theRetryMode. -
defaultRetryMode
Configure theRetryModethat should be used if the mode is not specified anywhere else. -
defaultNewRetries2026
Deprecated.The standard and adaptive retry modes use retry behavior 2.1. This method has no effect.This setting is ignored. The standard and adaptive retry modes use retry behavior 2.1, and the SDK default retry mode isRetryMode.STANDARD. -
resolve
Resolve which retry mode should be used, based on the configured values.
-