public interface CacheManagerFactory
Caching class to create
a CacheManager| 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 name)
Get a named cache manager using the default cache loader as specified by
the implementation.
|
CacheManager getCacheManager(String name)
name - the name of the cache managerNullPointerException - if name is nullCacheManager getCacheManager(ClassLoader classLoader, String name)
classLoader - associated with the cache manager.name - the name of the cache managerNullPointerException - if classLoader or name is nullvoid close()
throws CachingShutdownException
CachingShutdownException - if any of the individual shutdowns failedboolean close(ClassLoader classLoader) throws CachingShutdownException
classLoader - the class loader for which managers will be shut downCachingShutdownException - if any of the individual shutdowns failedboolean close(ClassLoader classLoader, String name) throws CachingShutdownException
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 CacheManagerCopyright © 2018 WSO2 Inc. All rights reserved.