官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 秦安县| 阿拉善右旗| 永仁县| 邹平县| 二连浩特市| 长顺县| 页游| 德化县| 皋兰县| 萍乡市| 成武县| 德阳市| 加查县| 土默特右旗| 怀宁县| 丰城市| 象州县| 锦屏县| 博罗县| 黔西县| 布拖县| 永平县| 丹江口市| 谷城县| 金乡县| 南安市| 大田县| 静乐县| 张家口市| 芒康县| 宣汉县| 老河口市| 乐安县| 普格县| 阳江市| 台北市| 揭西县| 抚顺市| 安多县| 平原县| 旌德县|