Package org.teiid.cache.infinispan
Class InfinispanCacheFactory
- java.lang.Object
-
- org.teiid.cache.infinispan.InfinispanCacheFactory
-
- All Implemented Interfaces:
Serializable
,CacheFactory
public class InfinispanCacheFactory extends Object implements CacheFactory, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfinispanCacheFactory(org.infinispan.manager.EmbeddedCacheManager cm, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Destroy the cache factory and any caches underneath.<K,V>
Cache<K,V>get(String cacheName)
Create / Get the cache for the give type usevoid
stop()
-
-
-
Constructor Detail
-
InfinispanCacheFactory
public InfinispanCacheFactory(org.infinispan.manager.EmbeddedCacheManager cm, ClassLoader classLoader)
-
-
Method Detail
-
get
public <K,V> Cache<K,V> get(String cacheName)
Description copied from interface:CacheFactory
Create / Get the cache for the give type use- Specified by:
get
in interfaceCacheFactory
- Parameters:
cacheName
- - name of the cache- Returns:
-
destroy
public void destroy()
Description copied from interface:CacheFactory
Destroy the cache factory and any caches underneath.- Specified by:
destroy
in interfaceCacheFactory
-
stop
public void stop()
-
-