Method | Description | |
---|---|---|
Clear ( ) : void |
Removes all Dispatchers from the cache.
|
|
Get ( DispatcherKey key, DispatcherFactory factory ) : Dispatcher |
Gets a dispatcher from the cache if available otherwise invokes factory to produce one and then cache it.
|
public Get ( DispatcherKey key, DispatcherFactory factory ) : Dispatcher | ||
key | DispatcherKey | the dispatcher key |
factory | DispatcherFactory | function to produce a dispatcher in case one it's not yet available |
return | Dispatcher |