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)
GlobalConfigurationManager
createCache
in interface GlobalConfigurationManager
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to applypublic CompletableFuture<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManager
getOrCreateCache
in interface GlobalConfigurationManager
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to applypublic CompletableFuture<Configuration> createCache(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManager
createCache
in interface GlobalConfigurationManager
cacheName
- 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)
GlobalConfigurationManager
getOrCreateCache
in interface GlobalConfigurationManager
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to applypublic CompletableFuture<Void> removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
GlobalConfigurationManager
removeCache
in interface GlobalConfigurationManager
name
- the name of the cacheCopyright © 2021 JBoss by Red Hat. All rights reserved.