Interface LocalConfigurationStorage

    • Method Detail

      • createCache

        java.util.concurrent.CompletableFuture<java.lang.Void> createCache​(java.lang.String name,
                                                                           java.lang.String template,
                                                                           Configuration configuration,
                                                                           java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
        Creates the cache using the supplied template, configuration and flags. This method may be invoked either with or without a template. In both cases a concrete configuration will also be available. If a template name is present, the LocalConfigurationStorage should use it, e.g. when persisting the configuration.
        name - the name of the cache to create
        template - the template that should be used to configure the cache. Can be null.
        configuration - the Configuration to use
        flags - the desired CacheContainerAdmin.AdminFlags
      • removeCache

        java.util.concurrent.CompletableFuture<java.lang.Void> removeCache​(java.lang.String name,
                                                                           java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
        Removes the specified cache.
        name - the name of the cache to remove
        flags - the desired CacheContainerAdmin.AdminFlags
      • loadAll

        java.util.Map<java.lang.String,​Configuration> loadAll()
        Loads all persisted cache configurations