Class JCacheManager<K,V>
- java.lang.Object
-
- org.apache.camel.component.jcache.JCacheManager<K,V>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class JCacheManager<K,V> extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description JCacheManager(javax.cache.Cache<K,V> cache)
JCacheManager(JCacheConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected javax.cache.Cache<K,V>
doGetCache(JCacheProvider jcacheProvider)
javax.cache.Cache<K,V>
getCache()
String
getCacheName()
JCacheConfiguration
getConfiguration()
protected javax.cache.event.CacheEntryEventFilter
getEventFilter()
-
-
-
Constructor Detail
-
JCacheManager
public JCacheManager(JCacheConfiguration configuration)
-
-
Method Detail
-
getCacheName
public String getCacheName()
-
getConfiguration
public JCacheConfiguration getConfiguration()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getEventFilter
protected javax.cache.event.CacheEntryEventFilter getEventFilter()
-
doGetCache
protected javax.cache.Cache<K,V> doGetCache(JCacheProvider jcacheProvider) throws Exception
- Throws:
Exception
-
-