Package org.alfresco.util.cache
Class DefaultAsynchronouslyRefreshedCacheRegistry
- java.lang.Object
-
- org.alfresco.util.cache.DefaultAsynchronouslyRefreshedCacheRegistry
-
- All Implemented Interfaces:
AsynchronouslyRefreshedCacheRegistry
public class DefaultAsynchronouslyRefreshedCacheRegistry extends Object implements AsynchronouslyRefreshedCacheRegistry
Base registry implementation- Author:
- Andy
-
-
Constructor Summary
Constructors Constructor Description DefaultAsynchronouslyRefreshedCacheRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcastEvent(RefreshableCacheEvent event, boolean toAll)Fire an eventvoidregister(RefreshableCacheListener listener)Register a listener
-
-
-
Method Detail
-
register
public void register(RefreshableCacheListener listener)
Description copied from interface:AsynchronouslyRefreshedCacheRegistryRegister a listener- Specified by:
registerin interfaceAsynchronouslyRefreshedCacheRegistry
-
broadcastEvent
public void broadcastEvent(RefreshableCacheEvent event, boolean toAll)
Description copied from interface:AsynchronouslyRefreshedCacheRegistryFire an event- Specified by:
broadcastEventin interfaceAsynchronouslyRefreshedCacheRegistrytoAll- - true goes to all listeners, false only to listeners that have a matching cacheId
-
-