This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support retry settings and retryable codes in call context (#1238)
* feat: support retry settings and retryable codes in call context Allows applications to supply retry settings and retryabe codes for individual RPCs through ApiCallContext. Fixes #1197 * chore: fix formatting and license headers * feat: use context retry settings for streaming calls * fix: process review comments * fix: missed one Thread.sleep * fix: fix style * fix: address review comments * refactor: remove ContextAwareResultRetryAlgorithm * refactor: remove ContextAwareTimedRetryAlgorithm * fix: make package-private + add ignored * revert: revert to always using global settings for jittered * test: add tests for NoopRetryingContext * chore: cleanup 'this' usage * refactor: merge context aware classes with base classes * chore: cleanup and remove unnecessary methods * test: add safety margin as the retry settings are now jittered * docs: add javadoc * chore: address review comments * fix: address review comments * fix: add tests + fix potential NPE * fix: remove unused method + add tests * test: add additional test calls * fix: deprecation
- Loading branch information
Showing
30 changed files
with
2,093 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.