Package org.alfresco.util.cache
Class DefaultAsynchronouslyRefreshedCacheRegistry
- java.lang.Object
-
- org.alfresco.util.cache.DefaultAsynchronouslyRefreshedCacheRegistry
-
- All Implemented Interfaces:
AsynchronouslyRefreshedCacheRegistry
public class DefaultAsynchronouslyRefreshedCacheRegistry extends java.lang.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 void
broadcastEvent(RefreshableCacheEvent event, boolean toAll)
Fire an eventvoid
register(RefreshableCacheListener listener)
Register a listener
-
-
-
Method Detail
-
register
public void register(RefreshableCacheListener listener)
Description copied from interface:AsynchronouslyRefreshedCacheRegistry
Register a listener- Specified by:
register
in interfaceAsynchronouslyRefreshedCacheRegistry
-
broadcastEvent
public void broadcastEvent(RefreshableCacheEvent event, boolean toAll)
Description copied from interface:AsynchronouslyRefreshedCacheRegistry
Fire an event- Specified by:
broadcastEvent
in interfaceAsynchronouslyRefreshedCacheRegistry
toAll
- - true goes to all listeners, false only to listeners that have a matching cacheId
-
-