public interface EmbeddedCacheManagerAdmin extends CacheContainerAdmin<EmbeddedCacheManagerAdmin,Configuration>
EmbeddedCacheManager.administration()CacheContainerAdmin.AdminFlag| Modifier and Type | Method and Description |
|---|---|
<K,V> Cache<K,V> |
createCache(String name,
Configuration configuration)
Creates a cache across the cluster.
|
<K,V> Cache<K,V> |
createCache(String name,
String template)
Creates a cache on the container using the specified template.
|
<K,V> Cache<K,V> |
getOrCreateCache(String name,
Configuration configuration)
Retrieves an existing cache or creates one across the cluster using the specified configuration.
|
<K,V> Cache<K,V> |
getOrCreateCache(String name,
String template)
Retrieves an existing cache or creates one using the specified template if it doesn't exist
|
removeCache, withFlags, withFlags<K,V> Cache<K,V> createCache(String name, String template)
createCache in interface CacheContainerAdmin<EmbeddedCacheManagerAdmin,Configuration>name - the name of the cache to createtemplate - the template to use for the cache. If null, the configuration marked as default on the container
will be usedCacheException - if a cache with the same name already exists<K,V> Cache<K,V> getOrCreateCache(String name, String template)
getOrCreateCache in interface CacheContainerAdmin<EmbeddedCacheManagerAdmin,Configuration>name - the name of the cache to createtemplate - the template to use for the cache. If null, the configuration marked as default on the container
will be used<K,V> Cache<K,V> createCache(String name, Configuration configuration)
createCache in interface CacheContainerAdmin<EmbeddedCacheManagerAdmin,Configuration>K - the generic type of the keyV - the generic type of the valuename - the name of the cacheconfiguration - the configuration to use. It must be a clustered configuration (e.g. distributed)CacheException - if a cache with the same name already exists<K,V> Cache<K,V> getOrCreateCache(String name, Configuration configuration)
getOrCreateCache in interface CacheContainerAdmin<EmbeddedCacheManagerAdmin,Configuration>K - the generic type of the keyV - the generic type of the valuename - the name of the cacheconfiguration - the configuration to use. It must be a clustered configuration (e.g. distributed)Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.