Package org.infinispan.manager
Interface CacheContainer
- All Superinterfaces:
BasicCacheContainer
,Lifecycle
- All Known Subinterfaces:
EmbeddedCacheManager
- All Known Implementing Classes:
AbstractDelegatingEmbeddedCacheManager
,DefaultCacheManager
,InternalCacheManager
-
Method Summary
Modifier and TypeMethodDescriptiondefault CacheContainerAdmin
<?, ?> 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> Retrieves a cache by name.Methods inherited from interface org.infinispan.commons.api.BasicCacheContainer
getCacheNames
-
Method Details
-
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
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
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.
-