-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AbstractRetryingFilterBuilder to require jitter (#1692)
Motivation: AbstractRetryingFilterBuilder currently allows configuration with no jitter, but this will trigger an assertion error at build time. In practice most use cases are encouraged to use some form of jitter so we should deprecate the non-jitter build methods and make sure they don't trigger an assertion error. Modifications: - Deprecate buildWithImmediateRetries, buildWithConstantBackoff, and buildWithConstantBackoff methods on AbstractRetryingFilterBuilder. - Enhance jitter bounds upfront validation in RepeatStrategies and RetryStrategies to throw early if we can easily detect invalid arguments. Result: No more assertion error in AbstractRetryingFilterBuilder due to lack of jitter, users encouraged to use jitter in retry strategies.
- Loading branch information
1 parent
ba13567
commit 813ab13
Showing
4 changed files
with
31 additions
and
14 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
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
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
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