Class CacheManagerImpl
java.lang.Object
com.github.benmanes.caffeine.jcache.CacheManagerImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,CacheManager
An implementation of JSR-107
CacheManager that manages Caffeine-based caches.-
Constructor Summary
ConstructorsConstructorDescriptionCacheManagerImpl(CachingProvider cacheProvider, boolean runsAsAnOsgiBundle, URI uri, ClassLoader classLoader, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<K, V, C extends Configuration<K,V>>
Cache<K, V> createCache(String cacheName, C configuration) voiddestroyCache(String cacheName) voidenableManagement(String cacheName, boolean enabled) voidenableStatistics(String cacheName, boolean enabled) <K,V> CacheProxy <K, V> getURI()booleanisClosed()<T> T
-
Constructor Details
-
CacheManagerImpl
public CacheManagerImpl(CachingProvider cacheProvider, boolean runsAsAnOsgiBundle, URI uri, ClassLoader classLoader, Properties properties)
-
-
Method Details
-
getCachingProvider
- Specified by:
getCachingProviderin interfaceCacheManager
-
getURI
- Specified by:
getURIin interfaceCacheManager
-
getClassLoader
- Specified by:
getClassLoaderin interfaceCacheManager
-
getProperties
- Specified by:
getPropertiesin interfaceCacheManager
-
createCache
public <K, V, C extends Configuration<K,V>> Cache<K,V> createCache(String cacheName, C configuration) - Specified by:
createCachein interfaceCacheManager
-
getCache
-
getCache
- Specified by:
getCachein interfaceCacheManager
-
getCacheNames
- Specified by:
getCacheNamesin interfaceCacheManager
-
destroyCache
- Specified by:
destroyCachein interfaceCacheManager
-
enableManagement
- Specified by:
enableManagementin interfaceCacheManager
-
enableStatistics
- Specified by:
enableStatisticsin interfaceCacheManager
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCacheManager- Specified by:
closein interfaceCloseable
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceCacheManager
-
unwrap
- Specified by:
unwrapin interfaceCacheManager
-