- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 76字
- 2021-06-25 20:52:39
Applicability and examples
The mediator pattern should be used when there are lots of entities interacting in a similar manner and those entities should be decoupled.
The mediator pattern is used in Java libraries to implement java.util.Timer. The timer class can be used to schedule threads to run one time or repeatedly at regular intervals. The thread objects correspond to the ConcreteColleague class. The timer class implements methods to manage the execution of background tasks.
推薦閱讀
- C++面向對象程序設計(第三版)
- 解構產品經理:互聯網產品策劃入門寶典
- 程序設計與實踐(VB.NET)
- 兩周自制腳本語言
- Visual C++數字圖像模式識別技術詳解
- PHP網絡編程學習筆記
- C/C++常用算法手冊(第3版)
- Mastering Unity Shaders and Effects
- Getting Started with Python Data Analysis
- Clojure Reactive Programming
- Mastering openFrameworks:Creative Coding Demystified
- Python程序設計與算法基礎教程(第2版)(微課版)
- TypeScript全棧開發
- Django 3 Web Development Cookbook
- 熱處理常見缺陷分析與解決方案