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
FieldsFields inherited from interface org.infinispan.globalstate.GlobalConfigurationManager
CONFIG_STATE_CACHE_NAME -
Constructor Summary
Constructors -
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, waitMethods 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:GlobalConfigurationManagerReturns the global state cache- Specified by:
getStateCachein interfaceGlobalConfigurationManager
-
createTemplate
public CompletionStage<Void> createTemplate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:GlobalConfigurationManagerDefines a cluster-wide configuration template- Specified by:
createTemplatein 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:GlobalConfigurationManagerDefines a cluster-wide configuration template- Specified by:
getOrCreateTemplatein 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: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 CompletionStage<Configuration> getOrCreateCache(String cacheName, Configuration configuration, EnumSet<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 CompletionStage<Configuration> createCache(String cacheName, String template, EnumSet<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 CompletionStage<Configuration> getOrCreateCache(String cacheName, String template, EnumSet<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
Description copied from interface:GlobalConfigurationManagerRemoves a cluster-wide cache and its configuration- Specified by:
removeCachein interfaceGlobalConfigurationManager- Parameters:
name- the name of the cache
-
removeTemplate
public CompletionStage<Void> removeTemplate(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:GlobalConfigurationManagerRemoves a cluster-wide template- Specified by:
removeTemplatein interfaceGlobalConfigurationManager- Parameters:
name- the name of the template
-