- 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.
推薦閱讀
- Clojure Programming Cookbook
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Vue.js快速入門與深入實戰
- C# 從入門到項目實踐(超值版)
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- 青少年Python編程入門
- Gradle for Android
- LabVIEW虛擬儀器入門與測控應用100例
- 零基礎學Python編程(少兒趣味版)
- JavaScript悟道
- 數據結構:Python語言描述
- RESTful Web API Design with Node.js
- Eclipse開發(學習筆記)
- TensorFlow.NET實戰
- Learning Spark SQL