June 2018
Intermediate to advanced
280 pages
7h 46m
English
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.
Read now
Unlock full access