
上QQ阅读APP看书,第一时间看更新
Dispatcher – the spider in the web
Think of the dispatcher as the spider in the web that handles messages being passed to it. You can also think of the dispatcher as a mailman who promises that your message will reach its target destination. A dispatcher lives, for one thing, to dispatch messages to anyone who will listen. There is usually just one dispatcher in a Flux architecture and a typical usage looks something like this:
dispatcher.dispatch(message);