Class ConfluenceHazelcastCacheManager

  • All Implemented Interfaces:
    com.atlassian.cache.CacheFactory, com.atlassian.cache.CacheManager

    public final class ConfluenceHazelcastCacheManager
    extends com.atlassian.cache.hazelcast.HazelcastCacheManager
    A subclass of HazelcastCacheManager which overrides the creation of certain cache types.
    Since:
    8.4
    • Field Summary

      • Fields inherited from class com.atlassian.cache.hazelcast.HazelcastCacheManager

        SETTINGS_MAP_NAME
      • Fields inherited from class com.atlassian.cache.impl.AbstractCacheManager

        cacheCreationLocks, caches, cacheSettingsDefaultsProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfluenceHazelcastCacheManager​(com.hazelcast.core.HazelcastInstance hazelcast, com.atlassian.cache.CacheFactory localCacheFactory, com.atlassian.cache.CacheSettingsDefaultsProvider settingsDefaultsProvider, AsyncInvalidationCacheFactory asyncInvalidationCacheFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <K,​V>
      com.atlassian.cache.Cache<K,​V>
      createAsyncHybridCache​(String cacheName, com.atlassian.cache.CacheLoader<K,​V> loader, com.atlassian.cache.CacheSettings settings)
      Instead of creating a HazelcastAsyncHybridCache as we would otherwise get, we instead create a AsyncInvalidationCache.
      protected <K,​V>
      com.atlassian.cache.Cache<K,​V>
      createDistributedCache​(String name, com.atlassian.cache.CacheLoader<K,​V> loader, com.atlassian.cache.CacheSettings settings)  
      • Methods inherited from class com.atlassian.cache.hazelcast.HazelcastCacheManager

        checkSettingsAreCompatible, createAsyncHybridCachedReference, createComputingCache, createDistributedCachedReference, createHybridCache, createHybridCachedReference, createSimpleCache, destroy, getCachedReference, getHazelcastInstance, init, updateCacheSettings
      • Methods inherited from class com.atlassian.cache.impl.AbstractCacheManager

        flushCaches, getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCaches, getManagedCache, getManagedCaches, mergeSettings, shutdown
    • Constructor Detail

      • ConfluenceHazelcastCacheManager

        public ConfluenceHazelcastCacheManager​(com.hazelcast.core.HazelcastInstance hazelcast,
                                               com.atlassian.cache.CacheFactory localCacheFactory,
                                               com.atlassian.cache.CacheSettingsDefaultsProvider settingsDefaultsProvider,
                                               AsyncInvalidationCacheFactory asyncInvalidationCacheFactory)
    • Method Detail

      • createAsyncHybridCache

        protected <K,​V> com.atlassian.cache.Cache<K,​V> createAsyncHybridCache​(String cacheName,
                                                                                          com.atlassian.cache.CacheLoader<K,​V> loader,
                                                                                          com.atlassian.cache.CacheSettings settings)
        Instead of creating a HazelcastAsyncHybridCache as we would otherwise get, we instead create a AsyncInvalidationCache.
        Overrides:
        createAsyncHybridCache in class com.atlassian.cache.hazelcast.HazelcastCacheManager
      • createDistributedCache

        protected <K,​V> com.atlassian.cache.Cache<K,​V> createDistributedCache​(String name,
                                                                                          com.atlassian.cache.CacheLoader<K,​V> loader,
                                                                                          com.atlassian.cache.CacheSettings settings)
        Overrides:
        createDistributedCache in class com.atlassian.cache.hazelcast.HazelcastCacheManager