Package org.cache2k.spi
Interface Cache2kCoreProvider
-
public interface Cache2kCoreProvider
Interface 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 void
close()
Close all cache2k cache managers.void
close(ClassLoader l)
Close all cache manager associated to this class loader.void
close(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.ClassLoader
getDefaultClassLoader()
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.String
getDefaultManagerName(ClassLoader cl)
CacheManager
getManager(ClassLoader cl, String name)
String
getVersion()
void
setDefaultManagerName(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
-
-