[type:bugfix]Add more retry strategies#5969
Merged
Aias00 merged 24 commits intoapache:masterfrom Apr 2, 2025
Merged
Conversation
Aias00
requested changes
Mar 25, 2025
| String CONTENT_ENCODING = "Content-Encoding"; | ||
|
|
||
| /** | ||
| * http请求重试策略 http request retry policy. |
| public enum HttpRetryBackoffSpecEnum { | ||
|
|
||
| /** | ||
| * 默认重试. |
| DEFAULT_BACKOFF("default"), | ||
|
|
||
| /** | ||
| * 固定重试. |
| FIXED_BACKOFF("fixed"), | ||
|
|
||
| /** | ||
| * 指数重试. |
| EXPONENTIAL_BACKOFF("exponential"), | ||
|
|
||
| /** | ||
| * 自定义重试. |
|
|
||
|
|
||
| /** | ||
| * 默认重试策略类 Default Retry Policy Class |
| } | ||
|
|
||
| /** | ||
| * 执行重试策略 |
| } | ||
|
|
||
| /** | ||
| * 执行重试策略 |
| import java.time.Duration; | ||
|
|
||
| /** | ||
| * 重试策略接口 Retry Policy Interface |
|
|
||
| @Test | ||
| void testDefaultRetryBackoffExecute() { | ||
| // 创建一个模拟的 AbstractHttpClientPlugin |
Contributor
|
fix ci error pls |
Contributor
|
fix the ci |
Contributor
Author
好的,多谢,版本已经提交 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复了#5920,保持原有代码不变的基础上,重构了AbstractHttpClientPlugin.让它支持更多的重试策略
Fixes #5920 ,On the basis of keeping the original code unchanged, we refactored AbstractFHIR Plugin Enable it to support more retry strategies
Make sure that:
./mvnw clean install -Dmaven.javadoc.skip=true.