Package org.cache2k.spi
Interface Cache2kCoreProvider
- 
 public interface Cache2kCoreProviderInterface to the cache2k implementation. This interface is not intended for the application usage. Use the static methods on theCacheManager.- Author:
- Jens Wilke; created: 2015-03-26
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close all cache2k cache managers.voidclose(ClassLoader l)Close all cache manager associated to this class loader.voidclose(ClassLoader l, String managerName)Close a specific cache manager by its name.<K,V>
 Cache<K,V>createCache(CacheManager m, Cache2kConfig<K,V> cfg)Create a cache, apply external configuration before creating it.ClassLoadergetDefaultClassLoader()Default class loader, this is the class loader used to load the cache implementation.Cache2kConfig<?,?>getDefaultConfig(CacheManager m)Return the effective default configuration for this manager.StringgetDefaultManagerName(ClassLoader cl)CacheManagergetManager(ClassLoader cl, String name)StringgetVersion()voidsetDefaultManagerName(ClassLoader cl, String s)
 
- 
- 
- 
Method Detail- 
setDefaultManagerNamevoid setDefaultManagerName(ClassLoader cl, String s) - See Also:
- CacheManager.setDefaultName(String)
 
 - 
getDefaultManagerNameString getDefaultManagerName(ClassLoader cl) - See Also:
- CacheManager.getDefaultName()
 
 - 
getManagerCacheManager getManager(ClassLoader cl, String name) 
 - 
getDefaultClassLoaderClassLoader getDefaultClassLoader() Default class loader, this is the class loader used to load the cache implementation.
 - 
closevoid close() Close all cache2k cache managers.
 - 
closevoid close(ClassLoader l) Close all cache manager associated to this class loader.
 - 
closevoid close(ClassLoader l, String managerName) Close a specific cache manager by its name.
 - 
createCache<K,V> Cache<K,V> createCache(CacheManager m, Cache2kConfig<K,V> cfg) Create a cache, apply external configuration before creating it.
 - 
getDefaultConfigCache2kConfig<?,?> getDefaultConfig(CacheManager m) Return the effective default configuration for this manager. A different default configuration may be provided by the configuration system.- Returns:
- mutable configuration instance containing the effective configuration defaults,
         never null
 
 - 
getVersionString getVersion() - Since:
- 2
 
 
- 
 
-