-
Notifications
You must be signed in to change notification settings - Fork 915
Deprecate legacy classes and use new when possible #4154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ public static AdaptiveRetryStrategy.Builder adaptiveStrategyBuilder() { | |
|
||
static final class Standard { | ||
static final int MAX_ATTEMPTS = 3; | ||
static final Duration BASE_DELAY = Duration.ofSeconds(1); | ||
static final Duration BASE_DELAY = Duration.ofMillis(100); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug fix, the value is 100ms see here. |
||
static final Duration MAX_BACKOFF = Duration.ofSeconds(20); | ||
static final int TOKEN_BUCKET_SIZE = 500; | ||
static final int DEFAULT_EXCEPTION_TOKEN_COST = 5; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,12 @@ | |
import software.amazon.awssdk.core.retry.RetryMode; | ||
import software.amazon.awssdk.core.retry.RetryPolicyContext; | ||
|
||
/** | ||
* @deprecated Use instead {@link software.amazon.awssdk.retries.api.BackoffStrategy} | ||
*/ | ||
@SdkPublicApi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SdkPublicApi can be removed if its deprecated. Generic comment for other classes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above, the build requires each class to have one of the API scope annotations. If we remove this one, which one should we use? |
||
@FunctionalInterface | ||
@Deprecated | ||
public interface BackoffStrategy { | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this @SdkPublicApi since its deprecated i think we can remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that we can remove it, if I do the build will bark with:
If we do, which one should we use instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated shouldn't change the public/protected/internalness
Confirmed this with the team.
Thanks for the patience while I was waiting to get clarification on this.