Package org.infinispan.globalstate.impl
Class GlobalConfigurationManagerImpl
- java.lang.Object
-
- org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl
-
- All Implemented Interfaces:
GlobalConfigurationManager
public class GlobalConfigurationManagerImpl extends Object implements GlobalConfigurationManager
Implementation ofGlobalConfigurationManager- Since:
- 9.2
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_SCOPE-
Fields inherited from interface org.infinispan.globalstate.GlobalConfigurationManager
CONFIG_STATE_CACHE_NAME
-
-
Constructor Summary
Constructors Constructor Description GlobalConfigurationManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Configuration>createCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Defines a cluster-wide cache configuration using the supplied templateCompletableFuture<Configuration>createCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Defines a cluster-wide cache configurationCompletableFuture<Configuration>getOrCreateCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Defines a cluster-wide cache configuration using the supplied template or retrieves an existing oneCompletableFuture<Configuration>getOrCreateCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Defines a cluster-wide cache configuration or retrieves an existing oneCache<ScopedState,Object>getStateCache()CompletableFuture<Void>removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Removes a cluster-wide cache and its configuration
-
-
-
Field Detail
-
CACHE_SCOPE
public static final String CACHE_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStateCache
public Cache<ScopedState,Object> getStateCache()
-
createCache
public CompletableFuture<Configuration> createCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManagerDefines a cluster-wide cache configuration- Specified by:
createCachein interfaceGlobalConfigurationManager- Parameters:
cacheName- the name of the configurationconfiguration- the configuration objectflags- the flags to apply
-
getOrCreateCache
public CompletableFuture<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManagerDefines a cluster-wide cache configuration or retrieves an existing one- Specified by:
getOrCreateCachein interfaceGlobalConfigurationManager- Parameters:
cacheName- the name of the configurationconfiguration- the configuration objectflags- the flags to apply
-
createCache
public CompletableFuture<Configuration> createCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManagerDefines a cluster-wide cache configuration using the supplied template- Specified by:
createCachein interfaceGlobalConfigurationManager- Parameters:
cacheName- the name of the configurationtemplate- the template name to useflags- the flags to apply
-
getOrCreateCache
public CompletableFuture<Configuration> getOrCreateCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManagerDefines a cluster-wide cache configuration using the supplied template or retrieves an existing one- Specified by:
getOrCreateCachein interfaceGlobalConfigurationManager- Parameters:
cacheName- the name of the configurationtemplate- the template name to useflags- the flags to apply
-
removeCache
public CompletableFuture<Void> removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManagerRemoves a cluster-wide cache and its configuration- Specified by:
removeCachein interfaceGlobalConfigurationManager- Parameters:
name- the name of the cache
-
-