public interface GlobalConfigurationManager
GlobalConfigurationManager
is the main interface for sharing runtime configuration state across a cluster.
It uses an internal cache 'org.infinispan.CONFIG'. The cache is keyed with ScopedState
. Each scope owner is responsible
for its own keys.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_STATE_CACHE_NAME |
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
|
CompletableFuture<Void> |
removeCache(String cacheName,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes a cluster-wide cache and its configuration
|
static final String CONFIG_STATE_CACHE_NAME
CompletableFuture<Configuration> createCache(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to applyCompletableFuture<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to applyCompletableFuture<Configuration> createCache(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags)
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to applyCompletableFuture<Configuration> getOrCreateCache(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags)
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to applyCompletableFuture<Void> removeCache(String cacheName, EnumSet<CacheContainerAdmin.AdminFlag> flags)
cacheName
- the name of the cacheflags
- Copyright © 2021 JBoss by Red Hat. All rights reserved.