public class DefaultCacheContainer extends org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager implements CacheContainer
| Constructor and Description |
|---|
DefaultCacheContainer(String name,
org.infinispan.manager.EmbeddedCacheManager container,
String defaultCacheName) |
DefaultCacheContainer(String name,
org.infinispan.manager.EmbeddedCacheManager container,
String defaultCacheName,
BatcherFactory batcherFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheDependency(String from,
String to) |
boolean |
cacheExists(String cacheName) |
org.infinispan.configuration.cache.Configuration |
defineConfiguration(String cacheName,
org.infinispan.configuration.cache.Configuration configuration) |
org.infinispan.configuration.cache.Configuration |
defineConfiguration(String cacheName,
String templateCacheName,
org.infinispan.configuration.cache.Configuration configurationOverride) |
<K,V> org.infinispan.Cache<K,V> |
getCache() |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
boolean createIfAbsent) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
String configurationName) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
String configurationTemplate,
boolean createIfAbsent) |
org.infinispan.configuration.cache.Configuration |
getCacheConfiguration(String name) |
org.infinispan.configuration.cache.Configuration |
getDefaultCacheConfiguration() |
String |
getDefaultCacheName()
Returns the name of the default cache.
|
String |
getName()
Returns the name of this cache container.
|
int |
hashCode() |
boolean |
isDefaultRunning() |
boolean |
isRunning(String cacheName) |
void |
removeCache(String cacheName) |
void |
start() |
org.infinispan.manager.EmbeddedCacheManager |
startCaches(String... names) |
void |
stop() |
String |
toString() |
void |
undefineConfiguration(String cacheName) |
addListener, executor, getAddress, getCacheConfigurationNames, getCacheManagerConfiguration, getCacheNames, getClusterName, getCoordinator, getGlobalComponentRegistry, getListeners, getMembers, getStats, getStatus, getTransport, isCoordinator, removeListenerclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitpublic DefaultCacheContainer(String name, org.infinispan.manager.EmbeddedCacheManager container, String defaultCacheName)
public DefaultCacheContainer(String name, org.infinispan.manager.EmbeddedCacheManager container, String defaultCacheName, BatcherFactory batcherFactory)
public String getName()
CacheContainerpublic void start()
start in interface org.infinispan.commons.api.Lifecyclestart in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic void stop()
stop in interface org.infinispan.commons.api.Lifecyclestop in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic String getDefaultCacheName()
CacheContainerpublic org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName, org.infinispan.configuration.cache.Configuration configuration)
defineConfiguration in interface org.infinispan.manager.EmbeddedCacheManagerdefineConfiguration in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName, String templateCacheName, org.infinispan.configuration.cache.Configuration configurationOverride)
defineConfiguration in interface org.infinispan.manager.EmbeddedCacheManagerdefineConfiguration in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic void undefineConfiguration(String cacheName)
undefineConfiguration in interface org.infinispan.manager.EmbeddedCacheManagerundefineConfiguration in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic org.infinispan.configuration.cache.Configuration getDefaultCacheConfiguration()
getDefaultCacheConfiguration in interface org.infinispan.manager.EmbeddedCacheManagergetDefaultCacheConfiguration in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic org.infinispan.configuration.cache.Configuration getCacheConfiguration(String name)
getCacheConfiguration in interface org.infinispan.manager.EmbeddedCacheManagergetCacheConfiguration in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic <K,V> org.infinispan.Cache<K,V> getCache()
getCache in interface org.infinispan.commons.api.BasicCacheContainergetCache in interface org.infinispan.manager.CacheContainergetCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerCacheContainer.getCache()public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName)
getCache in interface org.infinispan.commons.api.BasicCacheContainergetCache in interface org.infinispan.manager.CacheContainergetCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, String configurationName)
getCache in interface org.infinispan.manager.EmbeddedCacheManagergetCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, boolean createIfAbsent)
getCache in interface org.infinispan.manager.EmbeddedCacheManagergetCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, String configurationTemplate, boolean createIfAbsent)
getCache in interface org.infinispan.manager.EmbeddedCacheManagergetCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic boolean isDefaultRunning()
isDefaultRunning in interface org.infinispan.manager.EmbeddedCacheManagerisDefaultRunning in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerEmbeddedCacheManager.isDefaultRunning()public boolean isRunning(String cacheName)
isRunning in interface org.infinispan.manager.EmbeddedCacheManagerisRunning in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerEmbeddedCacheManager.isRunning(String)public boolean cacheExists(String cacheName)
cacheExists in interface org.infinispan.manager.EmbeddedCacheManagercacheExists in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerEmbeddedCacheManager.cacheExists(java.lang.String)public void removeCache(String cacheName)
removeCache in interface org.infinispan.manager.EmbeddedCacheManagerremoveCache in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerEmbeddedCacheManager.removeCache(java.lang.String)public org.infinispan.manager.EmbeddedCacheManager startCaches(String... names)
startCaches in interface org.infinispan.manager.EmbeddedCacheManagerstartCaches in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic void addCacheDependency(String from, String to)
addCacheDependency in interface org.infinispan.manager.EmbeddedCacheManageraddCacheDependency in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManagerpublic int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2021 JBoss by Red Hat. All rights reserved.