Class CacheFactory

java.lang.Object
is.galia.cache.CacheFactory

public final class CacheFactory extends Object
Used to obtain Cache instances according to the application configuration.
  • Method Details

    • getAllInfoCaches

      public static Set<InfoCache> getAllInfoCaches()
      Returns:
      Set of instances of all available info caches.
    • getPluginInfoCaches

      public static Set<InfoCache> getPluginInfoCaches()
      Returns:
      Set of instances of all info caches provided by plugins. The instances have not been initialized.
    • getAllVariantCaches

      public static Set<VariantCache> getAllVariantCaches()
      Returns:
      Set of instances of all available variant caches.
    • getPluginVariantCaches

      public static Set<VariantCache> getPluginVariantCaches()
      Returns:
      Set of instances of all variant caches provided by plugins.
    • getInfoCache

      public static Optional<InfoCache> getInfoCache()

      Provides access to the shared InfoCache instance.

      This method respects live changes in application configuration.

      Returns:
      The shared instance, or null if a variant cache is not available.
    • getVariantCache

      public static Optional<VariantCache> getVariantCache()

      Provides access to the shared VariantCache instance.

      This method respects live changes in application configuration.

      Returns:
      The shared instance, or null if a variant cache is not available.
    • shutdownCaches

      public static void shutdownCaches()