Package org.infinispan.globalstate.impl
Class GlobalConfigurationManagerImpl
java.lang.Object
org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl
- All Implemented Interfaces:
GlobalConfigurationManager
Implementation of
GlobalConfigurationManager
- Since:
- 9.2
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from interface org.infinispan.globalstate.GlobalConfigurationManager
CONFIG_STATE_CACHE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCache
(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide cache configuration using the supplied templatecreateCache
(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide cache configurationcreateTemplate
(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide configuration templategetOrCreateCache
(String cacheName, String template, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide cache configuration using the supplied template or retrieves an existing onegetOrCreateCache
(String cacheName, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide cache configuration or retrieves an existing onegetOrCreateTemplate
(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Defines a cluster-wide configuration templateReturns the global state cacheremoveCache
(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Removes a cluster-wide cache and its configurationremoveTemplate
(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Removes a cluster-wide templateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.globalstate.GlobalConfigurationManager
postStart
-
Field Details
-
CACHE_SCOPE
- See Also:
-
TEMPLATE_SCOPE
- See Also:
-
-
Constructor Details
-
GlobalConfigurationManagerImpl
public GlobalConfigurationManagerImpl()
-
-
Method Details
-
getStateCache
Description copied from interface:GlobalConfigurationManager
Returns the global state cache- Specified by:
getStateCache
in interfaceGlobalConfigurationManager
-
createTemplate
public CompletionStage<Void> createTemplate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide configuration template- Specified by:
createTemplate
in interfaceGlobalConfigurationManager
- Parameters:
name
- the name of the templateconfiguration
- the configuration objectflags
- the flags to apply
-
getOrCreateTemplate
public CompletionStage<Configuration> getOrCreateTemplate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:GlobalConfigurationManager
Defines a cluster-wide configuration template- Specified by:
getOrCreateTemplate
in interfaceGlobalConfigurationManager
- Parameters:
name
- the name of the templateconfiguration
- the configuration objectflags
- the flags to apply
-
createCache
public CompletionStage<Configuration> createCache(String cacheName, Configuration configuration, EnumSet<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 CompletionStage<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<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 CompletionStage<Configuration> createCache(String cacheName, String template, EnumSet<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 CompletionStage<Configuration> getOrCreateCache(String cacheName, String template, EnumSet<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
Description copied from interface:GlobalConfigurationManager
Removes a cluster-wide cache and its configuration- Specified by:
removeCache
in interfaceGlobalConfigurationManager
- Parameters:
name
- the name of the cacheflags
-
-
removeTemplate
public CompletionStage<Void> removeTemplate(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:GlobalConfigurationManager
Removes a cluster-wide template- Specified by:
removeTemplate
in interfaceGlobalConfigurationManager
- Parameters:
name
- the name of the templateflags
-
-