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)
CacheManagerFactory
getCacheManager
in interface CacheManagerFactory
cacheManagerName
- the name of the cache managerpublic CacheManager getCacheManager(ClassLoader classLoader, String name)
CacheManagerFactory
getCacheManager
in interface CacheManagerFactory
classLoader
- associated with the cache manager.name
- the name of the cache managerpublic void close() throws CachingShutdownException
CacheManagerFactory
close
in interface CacheManagerFactory
CachingShutdownException
- if any of the individual shutdowns failedpublic boolean close(ClassLoader classLoader) throws CachingShutdownException
CacheManagerFactory
close
in interface CacheManagerFactory
classLoader
- 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
CacheManagerFactory
close
in interface CacheManagerFactory
classLoader
- 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 © 2015 WSO2 Inc. All rights reserved.