Package org.infinispan.manager
Interface CacheContainer
-
- All Superinterfaces:
BasicCacheContainer
,Lifecycle
- All Known Subinterfaces:
EmbeddedCacheManager
- All Known Implementing Classes:
DefaultCacheManager
public interface CacheContainer extends BasicCacheContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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()
Retrieves the default cache associated with this cache container.<K,V>
Cache<K,V>getCache(String cacheName)
Retrieves a cache by name.-
Methods inherited from interface org.infinispan.commons.api.BasicCacheContainer
getCacheNames
-
-
-
-
Method Detail
-
getCache
<K,V> Cache<K,V> getCache()
Description copied from interface:BasicCacheContainer
Retrieves the default cache associated with this cache container.- Specified by:
getCache
in interfaceBasicCacheContainer
- Returns:
- the default cache.
-
getCache
<K,V> Cache<K,V> getCache(String cacheName)
Description copied from interface:BasicCacheContainer
Retrieves a cache by name. If the cache has been previously created with the same name, the running cache instance is returned. Otherwise, this method attempts to create the cache first.- Specified by:
getCache
in interfaceBasicCacheContainer
- Parameters:
cacheName
- name of cache to retrieve- Returns:
- a cache instance identified by cacheName
-
administration
default 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.
-
-