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 String
CACHE_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 Configuration
createCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configuration using the supplied templateConfiguration
createCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Defines a cluster-wide cache configurationConfiguration
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 oneConfiguration
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()
void
removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Removes a cluster-wide cache and its configurationvoid
start()
-
-
-
Field Detail
-
CACHE_SCOPE
public static final String CACHE_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start()
-
getStateCache
public Cache<ScopedState,Object> getStateCache()
-
createCache
public Configuration createCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide cache configuration- Specified by:
createCache
in interfaceGlobalConfigurationManager
- Parameters:
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to apply
-
getOrCreateCache
public Configuration getOrCreateCache(String cacheName, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide cache configuration or retrieves an existing one- Specified by:
getOrCreateCache
in interfaceGlobalConfigurationManager
- Parameters:
cacheName
- the name of the configurationconfiguration
- the configuration objectflags
- the flags to apply
-
createCache
public Configuration createCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide cache configuration using the supplied template- Specified by:
createCache
in interfaceGlobalConfigurationManager
- Parameters:
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to apply
-
getOrCreateCache
public Configuration getOrCreateCache(String cacheName, String template, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide cache configuration using the supplied template or retrieves an existing one- Specified by:
getOrCreateCache
in interfaceGlobalConfigurationManager
- Parameters:
cacheName
- the name of the configurationtemplate
- the template name to useflags
- the flags to apply
-
removeCache
public void removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:GlobalConfigurationManager
Removes a cluster-wide cache and its configuration- Specified by:
removeCache
in interfaceGlobalConfigurationManager
- Parameters:
name
- the name of the cache
-
-