Package org.cache2k.core.api
Interface InternalCacheCloseContext
-
- All Known Subinterfaces:
InternalCache<K,V>
- All Known Implementing Classes:
BaseCache,HeapCache,IntHeapCache,WiredCache
public interface InternalCacheCloseContextUsed to know cache and manager name during close for logging and throwing exceptions. Also providedcloseCustomization(Object, String)to optionally close a customization. Components using this implementNeedsClose- Author:
- Jens Wilke
- See Also:
NeedsClose
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseCustomization(Object customization, String name)Call close on the customization if theCloseableinterface is implementedorg.cache2k.CacheManagergetCacheManager()The cache managerStringgetName()The cache name
-
-
-
Method Detail
-
getName
String getName()
The cache name
-
getCacheManager
org.cache2k.CacheManager getCacheManager()
The cache manager
-
-