Class CacheFactory


  • public final class CacheFactory
    extends java.lang.Object
    Class has all Cache instantiation methods.
    On the base of cache.legacymode from advanced properties it creates regioncache or old cache (cache2) instances.

    This class is used also to bootstrap CacheController. Existing legacy code uses static class-level constructs to bootstrap Cache, so it's impossible to use Spring dependency injection directly.

    • Constructor Detail

      • CacheFactory

        public CacheFactory()
    • Method Detail

      • createCacheInstance

        public Cache createCacheInstance​(Tenant tenant)
      • isLegacyMode

        public static boolean isLegacyMode​(Tenant tenant)
      • createCacheInstance

        public Cache createCacheInstance​(Tenant slaveTenant,
                                         Tenant masterTenant)
      • createCacheInstance

        public Cache createCacheInstance​(Tenant tenant,
                                         int cacheSize)
      • createCacheInstance

        public Cache createCacheInstance​(Tenant tenant,
                                         int cacheSize,
                                         boolean forceExclusiveComputation)