Class Ec2MetadataRetryPolicy

java.lang.Object
software.amazon.awssdk.imds.Ec2MetadataRetryPolicy
All Implemented Interfaces:
ToCopyableBuilder<Ec2MetadataRetryPolicy.Builder,Ec2MetadataRetryPolicy>

public final class Ec2MetadataRetryPolicy extends Object implements ToCopyableBuilder<Ec2MetadataRetryPolicy.Builder,Ec2MetadataRetryPolicy>
Interface for specifying a retry policy to use when evaluating whether or not a request should be retried, and the gap between each retry. The builder() can be used to construct a retry policy with numRetries and backoffStrategy.

When using the builder() the SDK will use default values for fields that are not provided.A custom BackoffStrategy can be used to construct a policy or a default BackoffStrategy is used.

See Also: