java.lang.Object
provided.utils.dispatcher.impl.ADispatcher<TMsg>
provided.utils.dispatcher.impl.ParallelDispatcher<TMsg>
- Type Parameters:
TMsg
- The type of message being sent to the observers.
- All Implemented Interfaces:
IDispatcher<TMsg>
A dispatcher that updates its observers in parallel if possible on multiple threads.
- Author:
- swong
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class provided.utils.dispatcher.impl.ADispatcher
addObserver, getAllObservers, getObserverSet, removeAllObservers, removeObserver
-
Constructor Details
-
ParallelDispatcher
public ParallelDispatcher()
-
-
Method Details
-
updateAll
Description copied from interface:IDispatcher
Send the given message to all the observers in the dispatcher- Parameters:
msg
- The IMsg to send to all the observers
-