Class CacheManagersRegistryImpl
- java.lang.Object
-
- org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl
-
- All Implemented Interfaces:
CacheManagersRegistry
,CacheManagers
@Singleton public class CacheManagersRegistryImpl extends Object implements CacheManagersRegistry
Implementation of CachesMonitor. This class is thread-safe.- Author:
- Michael Vorburger.ch
-
-
Constructor Summary
Constructors Constructor Description CacheManagersRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CacheManager>
getAllCacheManagers()
Get theCacheManager
for all caches.CacheManager
getCacheManager(String cacheID)
Get theCacheManager
for a particular cache, via its ID.void
registerCacheManager(CacheManager cacheManager)
Implementations ofCacheProvider
invoke this for each newCacheManager
they're about to return to users.
-
-
-
Method Detail
-
registerCacheManager
public void registerCacheManager(CacheManager cacheManager)
Description copied from interface:CacheManagersRegistry
Implementations ofCacheProvider
invoke this for each newCacheManager
they're about to return to users.- Specified by:
registerCacheManager
in interfaceCacheManagersRegistry
-
getAllCacheManagers
public List<CacheManager> getAllCacheManagers()
Description copied from interface:CacheManagers
Get theCacheManager
for all caches.- Specified by:
getAllCacheManagers
in interfaceCacheManagers
-
getCacheManager
public CacheManager getCacheManager(String cacheID)
Description copied from interface:CacheManagers
Get theCacheManager
for a particular cache, via its ID.- Specified by:
getCacheManager
in interfaceCacheManagers
-
-