diff --git a/zh/async-method-invocation/README.md b/zh/async-method-invocation/README.md index e82d8fa19e6ae6b304148776bec2039f96dad442..b71cd18f3c77462b66dc8a296f2fc7adc93044f0 100644 --- a/zh/async-method-invocation/README.md +++ b/zh/async-method-invocation/README.md @@ -8,7 +8,7 @@ tags: - Reactive --- -## 作用 +## 含义 异步方法是一种调用线程在等待任务结果时候不会被阻塞的模式。该模式提供了对多个任务的并行处理,并通过回调或等待,在所有任务完成后在提供结果读取。 @@ -144,7 +144,7 @@ public static void main(String[] args) throws Exception { ![alt text](../../async-method-invocation/etc/async-method-invocation.png "Async Method Invocation") -## 适用性 +## 适用场景 在以下场景可以使用异步调用模式 diff --git a/zh/balking/README.md b/zh/balking/README.md index 3a215a6b169da8663259432db12b4235b96b4142..9d8ac095d9d91896c4570c447089a2c5b2f35551 100644 --- a/zh/balking/README.md +++ b/zh/balking/README.md @@ -8,7 +8,7 @@ tags: - Decoupling --- -## 作用 +## 含义 阻止模式用于防止一个对象在不完整或不适当的状态下执行某段代码。 @@ -112,7 +112,7 @@ public interface DelayProvider { ![alt text](../../balking/etc/balking.png "Balking") -## 适用性 +## 适用场景 在以下情况下可以使用阻止模式: @@ -124,6 +124,6 @@ public interface DelayProvider { * [Guarded Suspension Pattern](https://java-design-patterns.com/patterns/guarded-suspension/) * [Double Checked Locking Pattern](https://java-design-patterns.com/patterns/double-checked-locking/) -## 鸣谢 +## 引用 * [Patterns in Java: A Catalog of Reusable Design Patterns Illustrated with UML, 2nd Edition, Volume 1](https://www.amazon.com/gp/product/0471227293/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=javadesignpat-20&creative=9325&linkCode=as2&creativeASIN=0471227293&linkId=0e39a59ffaab93fb476036fecb637b99) diff --git a/zh/business-delegate/README.md b/zh/business-delegate/README.md index ce2a8afcc7393bf9180a5cfc1ac296e4a9c825bf..225d815560475d57901ee659e75e416bb0a7ceb9 100644 --- a/zh/business-delegate/README.md +++ b/zh/business-delegate/README.md @@ -8,7 +8,7 @@ tags: - Decoupling --- -## 作用 +## 含义 业务委托模式(译者:国内也有翻译成业务代表模式)在表现层和业务层之间增加了一个抽象层。通过使用该模式,我们获得了各层之间的松散耦合,并封装了关于如何定位、连接和与构成应用程序的业务对象进行交互的知识。 @@ -154,7 +154,7 @@ public class MobileClient { * [Business Delegate Pattern at TutorialsPoint](https://www.tutorialspoint.com/design_pattern/business_delegate_pattern.htm) -## 鸣谢 +## 引用 * [J2EE Design Patterns](https://www.amazon.com/gp/product/0596004273/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596004273&linkCode=as2&tag=javadesignpat-20&linkId=48d37c67fb3d845b802fa9b619ad8f31) * [Core J2EE Patterns: Best Practices and Design Strategies](https://www.amazon.com/gp/product/0130648841/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=javadesignpat-20&creative=9325&linkCode=as2&creativeASIN=0130648841&linkId=a0100de2b28c71ede8db1757fb2b5947)