In keeping with the Reactor pattern, a Selector class is a multiplexor of Channels.
与反应器模式一致,Selector类是Channel的多路复用器。
The Reactor pattern is closely related to the Observer pattern in this aspect: all dependents are informed when a single subject changes.
反应器模式与观察者模式(Observerpattern)在这个方面极为相似:当一个主体发生改变时,所有依属体都得到通知。
The Observer pattern is associated with a single source of events, however, whereas the Reactor pattern is associated with multiple sources of events.
不过,观察者模式与单个事件源关联,而反应器模式则与多个事件源关联。
The Observer pattern is associated with a single source of events, however, whereas the Reactor pattern is associated with multiple sources of events.
不过,观察者模式与单个事件源关联,而反应器模式则与多个事件源关联。
应用推荐