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

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.

主站蜘蛛池模板: 沭阳县| 额尔古纳市| 叙永县| 黄山市| 鹤峰县| 盈江县| 江安县| 石渠县| 中山市| 通化县| 桐庐县| 吉安市| 连江县| 乌恰县| 开平市| 金门县| 青冈县| 长丰县| 宝鸡市| 东丰县| 玛纳斯县| 镇雄县| 五河县| 武穴市| 明水县| 杭锦后旗| 云龙县| 湘西| 全州县| 镇雄县| 贵阳市| 奇台县| 隆化县| 铅山县| 龙川县| 恩施市| 浦北县| 吉木乃县| 曲靖市| 三亚市| 甘谷县|