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 Summary
All 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
-
setDefaultManagerName
void setDefaultManagerName(ClassLoader cl, String s)
- See Also:
CacheManager.setDefaultName(String)
-
getDefaultManagerName
String getDefaultManagerName(ClassLoader cl)
- See Also:
CacheManager.getDefaultName()
-
getManager
CacheManager getManager(ClassLoader cl, String name)
-
getDefaultClassLoader
ClassLoader getDefaultClassLoader()
Default class loader, this is the class loader used to load the cache implementation.
-
close
void close()
Close all cache2k cache managers.
-
close
void close(ClassLoader l)
Close all cache manager associated to this class loader.
-
close
void 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.
-
getDefaultConfig
Cache2kConfig<?,?> 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
-
getVersion
String getVersion()
- Since:
- 2
-
-