public class CacheManagerFactoryImpl extends Object implements CacheManagerFactory
| Constructor and Description |
|---|
CacheManagerFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Reclaims all resources obtained from this factory.
|
boolean |
close(ClassLoader classLoader)
Reclaims all resources for a ClassLoader from this factory.
|
boolean |
close(ClassLoader classLoader,
String name)
Reclaims all resources for a ClassLoader from this factory.
|
CacheManager |
getCacheManager(ClassLoader classLoader,
String name)
Get the cache manager for the specified name and class loader.
|
CacheManager |
getCacheManager(String cacheManagerName)
Get a named cache manager using the default cache loader as specified by
the implementation.
|
void |
removeCacheManager(CarbonCacheManager cacheManager,
String tenantDomain) |
void |
removeCacheManagerMap(String tenantDomain)
remove cache manager map from global cache manager map
|
public CacheManager getCacheManager(String cacheManagerName)
CacheManagerFactorygetCacheManager in interface CacheManagerFactorycacheManagerName - the name of the cache managerpublic CacheManager getCacheManager(ClassLoader classLoader, String name)
CacheManagerFactorygetCacheManager in interface CacheManagerFactoryclassLoader - associated with the cache manager.name - the name of the cache managerpublic void close()
throws CachingShutdownException
CacheManagerFactoryclose in interface CacheManagerFactoryCachingShutdownException - if any of the individual shutdowns failedpublic boolean close(ClassLoader classLoader) throws CachingShutdownException
CacheManagerFactoryclose in interface CacheManagerFactoryclassLoader - the class loader for which managers will be shut downCachingShutdownException - if any of the individual shutdowns failedpublic boolean close(ClassLoader classLoader, String name) throws CachingShutdownException
CacheManagerFactoryclose in interface CacheManagerFactoryclassLoader - the class loader for which managers will be shut downname - the name of the cache managerCachingShutdownException - if there is a problem shutting down a CacheManagerpublic void removeCacheManager(CarbonCacheManager cacheManager, String tenantDomain)
public void removeCacheManagerMap(String tenantDomain)
tenantDomain - - Tenant DomainCopyright © 2018 WSO2 Inc. All rights reserved.