Package org.infinispan.globalstate
Interface GlobalConfigurationManager
-
public interface GlobalConfigurationManager
TheGlobalConfigurationManager
is the main interface for sharing runtime configuration state across a cluster. It uses an internal cache 'org.infinispan.CONFIG'. The cache is keyed withScopedState
. Each scope owner is responsible for its own keys.- Since:
- 9.2
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_STATE_CACHE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<Configuration>
createCache(java.lang.String cacheName, java.lang.String template, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied templatejava.util.concurrent.CompletableFuture<Configuration>
createCache(java.lang.String cacheName, Configuration configuration, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configurationjava.util.concurrent.CompletableFuture<Configuration>
getOrCreateCache(java.lang.String cacheName, java.lang.String template, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied template or retrieves an existing onejava.util.concurrent.CompletableFuture<Configuration>
getOrCreateCache(java.lang.String cacheName, Configuration configuration, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration or retrieves an existing onejava.util.concurrent.CompletableFuture<java.lang.Void>
removeCache(java.lang.String cacheName, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes a cluster-wide cache and its configuration
-
-
-
Field Detail
-
CONFIG_STATE_CACHE_NAME
static final java.lang.String CONFIG_STATE_CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createCache
java.util.concurrent.CompletableFuture<Configuration> createCache(java.lang.String cacheName, Configuration configuration, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration- Parameters:
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to apply
-
getOrCreateCache
java.util.concurrent.CompletableFuture<Configuration> getOrCreateCache(java.lang.String cacheName, Configuration configuration, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration or retrieves an existing one- Parameters:
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to apply
-
createCache
java.util.concurrent.CompletableFuture<Configuration> createCache(java.lang.String cacheName, java.lang.String template, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied template- Parameters:
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to apply
-
getOrCreateCache
java.util.concurrent.CompletableFuture<Configuration> getOrCreateCache(java.lang.String cacheName, java.lang.String template, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied template or retrieves an existing one- Parameters:
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to apply
-
removeCache
java.util.concurrent.CompletableFuture<java.lang.Void> removeCache(java.lang.String cacheName, java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes a cluster-wide cache and its configuration- Parameters:
cacheName
- the name of the cacheflags
-
-
-