Skip to content

Update retry guidance and example#3000

Open
JordonPhillips wants to merge 3 commits intomainfrom
change-retry-numbers
Open

Update retry guidance and example#3000
JordonPhillips wants to merge 3 commits intomainfrom
change-retry-numbers

Conversation

@JordonPhillips
Copy link
Contributor

This updates the suggested retry strategy interface to accept info about the operation being invoked in the initial token acquisition method. This also updates the example strategy to match the new behaviors that are being rolled out for the AWS standard retry strategy, which includes checking for a long-polling trait on the operation.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This updates the suggested retry strategy interface to accept info
about the operation being invoked in the initial token acquisition
method. This also updates the example strategy to match the new
behaviors that are being rolled out for the AWS standard retry
strategy, which includes checking for a long-polling trait on
the operation.
@JordonPhillips JordonPhillips requested a review from a team as a code owner March 17, 2026 12:20
@JordonPhillips JordonPhillips requested a review from yasmewad March 17, 2026 12:20
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* @throws TokenAcquisitionFailedException if a token cannot be acquired.
*/
RetryToken acquireInitialToken();
RetryToken acquireInitialToken(ApiOperation<?, ?> operation);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add param to javadoc for consistency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants