Interface GlobalConfigurationManager

  • All Known Implementing Classes:
    GlobalConfigurationManagerImpl

    public interface GlobalConfigurationManager
    The GlobalConfigurationManager is the main interface for sharing runtime configuration state across a cluster. It uses an internal cache 'org.infinispan.CONFIG'. The cache is keyed with ScopedState. Each scope owner is responsible for its own keys.
    Since:
    9.2
    Author:
    Tristan Tarrant
    • Method Detail

      • createCache

        Configuration createCache​(String cacheName,
                                  Configuration configuration,
                                  EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
        Defines a cluster-wide cache configuration
        Parameters:
        cacheName - the name of the configuration
        configuration - the configuration object
        flags - the flags to apply
      • getOrCreateCache

        Configuration getOrCreateCache​(String cacheName,
                                       Configuration configuration,
                                       EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
        Defines a cluster-wide cache configuration or retrieves an existing one
        Parameters:
        cacheName - the name of the configuration
        configuration - the configuration object
        flags - the flags to apply
      • createCache

        Configuration createCache​(String cacheName,
                                  String template,
                                  EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
        Defines a cluster-wide cache configuration using the supplied template
        Parameters:
        cacheName - the name of the configuration
        template - the template name to use
        flags - the flags to apply
      • getOrCreateCache

        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 one
        Parameters:
        cacheName - the name of the configuration
        template - the template name to use
        flags - the flags to apply
      • removeCache

        void removeCache​(String cacheName,
                         EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
        Removes a cluster-wide cache and its configuration
        Parameters:
        cacheName - the name of the cache
        flags -