Package org.infinispan.manager
Interface CacheContainer
-
- All Superinterfaces:
org.infinispan.commons.api.BasicCacheContainer
,org.infinispan.commons.api.Lifecycle
- All Known Subinterfaces:
EmbeddedCacheManager
- All Known Implementing Classes:
AbstractDelegatingEmbeddedCacheManager
,AbstractDelegatingEmbeddedCacheManager
,DefaultCacheManager
public interface CacheContainer extends org.infinispan.commons.api.BasicCacheContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.infinispan.commons.api.CacheContainerAdmin<?,?>
administration()
Provides access to administrative methods which affect the underlying cache container, such as cache creation and removal.<K,V>
Cache<K,V>getCache()
<K,V>
Cache<K,V>getCache(String cacheName)
-
-
-
Method Detail
-
getCache
<K,V> Cache<K,V> getCache()
- Specified by:
getCache
in interfaceorg.infinispan.commons.api.BasicCacheContainer
- Returns:
- the default cache.
-
getCache
<K,V> Cache<K,V> getCache(String cacheName)
- Specified by:
getCache
in interfaceorg.infinispan.commons.api.BasicCacheContainer
- Parameters:
cacheName
- name of cache to retrieve- Returns:
- a cache instance identified by cacheName
-
administration
default org.infinispan.commons.api.CacheContainerAdmin<?,?> administration()
Provides access to administrative methods which affect the underlying cache container, such as cache creation and removal. If the underlying container is clustered or remote, the operations will affect all nodes.- Returns:
-
-