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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
broadcastEvent
(RefreshableCacheEvent event, boolean toAll) Fire an eventvoid
register
(RefreshableCacheListener listener) Register a listener
-
Constructor Details
-
DefaultAsynchronouslyRefreshedCacheRegistry
public DefaultAsynchronouslyRefreshedCacheRegistry()
-
-
Method Details
-
register
Description copied from interface:AsynchronouslyRefreshedCacheRegistry
Register a listener- Specified by:
register
in interfaceAsynchronouslyRefreshedCacheRegistry
-
broadcastEvent
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
-