public class GlobalConfigurationManagerImpl extends Object implements GlobalConfigurationManager
GlobalConfigurationManager| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_SCOPE |
CONFIG_STATE_CACHE_NAME| Constructor and Description |
|---|
GlobalConfigurationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Configuration> |
createCache(String cacheName,
Configuration configuration,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration
|
CompletableFuture<Configuration> |
createCache(String cacheName,
String template,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied template
|
CompletableFuture<Configuration> |
getOrCreateCache(String cacheName,
Configuration configuration,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration or retrieves an existing one
|
CompletableFuture<Configuration> |
getOrCreateCache(String cacheName,
String template,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied template or retrieves an existing one
|
Cache<ScopedState,Object> |
getStateCache() |
CompletableFuture<Void> |
removeCache(String name,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes a cluster-wide cache and its configuration
|
public static final String CACHE_SCOPE
public Cache<ScopedState,Object> getStateCache()
public CompletableFuture<Configuration> createCache(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManagercreateCache in interface GlobalConfigurationManagercacheName - the name of the configurationconfiguration - the configuration objectflags - the flags to applypublic CompletableFuture<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManagergetOrCreateCache in interface GlobalConfigurationManagercacheName - the name of the configurationconfiguration - the configuration objectflags - the flags to applypublic CompletableFuture<Configuration> createCache(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManagercreateCache in interface GlobalConfigurationManagercacheName - the name of the configurationtemplate - the template name to useflags - the flags to applypublic CompletableFuture<Configuration> getOrCreateCache(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManagergetOrCreateCache in interface GlobalConfigurationManagercacheName - the name of the configurationtemplate - the template name to useflags - the flags to applypublic CompletableFuture<Void> removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManagerremoveCache in interface GlobalConfigurationManagername - the name of the cacheCopyright © 2022 JBoss by Red Hat. All rights reserved.