mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 18:18:45 +00:00
refactor: Update zh pattern image paths
This commit is contained in:
1 parent
40fb6dda74
commit
63ef157f23
52 files changed
+55
-55
No files matched your search
@@ -37,7 +37,7 @@ remote calls.
|
||||
|
||||
服务架构如下:
|
||||
|
||||

|
||||

|
||||
|
||||
在代码方面,最终用户应用程序是:
|
||||
|
||||
@@ -278,7 +278,7 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
|
||||
|
||||
上述模式如何防止失败? 让我们通过它实现的这个有限状态机来理解。
|
||||
|
||||

|
||||

|
||||
|
||||
- 我们使用某些参数初始化断路器对象:`timeout`、`failureThreshold` 和 `retryTimePeriod`,这有助于确定 API 的弹性。
|
||||
- 最初,我们处于“关闭”状态,没有发生对 API 的远程调用。
|
||||
@@ -288,7 +288,7 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
||||
Reference in new issue
Block a user