Class ConfluenceNutclusterCacheManager

java.lang.Object
com.atlassian.cache.impl.AbstractCacheManager
com.atlassian.cache.nutcluster.NutclusterCacheManager
com.atlassian.confluence.impl.cache.nutcluster.ConfluenceNutclusterCacheManager
All Implemented Interfaces:
com.atlassian.cache.CacheFactory, com.atlassian.cache.CacheManager

public final class ConfluenceNutclusterCacheManager extends com.atlassian.cache.nutcluster.NutclusterCacheManager
A subclass of NutclusterCacheManager which overrides the creation of certain cache types.
Since:
8.4
  • Field Summary

    Fields inherited from class com.atlassian.cache.nutcluster.NutclusterCacheManager

    SETTINGS_MAP_NAME

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

    cacheCreationLocks, caches, cacheSettingsDefaultsProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfluenceNutclusterCacheManager(com.atlassian.nutcluster.core.NutclusterInstance nutcluster, com.atlassian.cache.CacheFactory localCacheFactory, com.atlassian.cache.CacheSettingsDefaultsProvider settingsDefaultsProvider, AsyncInvalidationCacheFactory asyncInvalidationCacheFactory)
     
  • Method Summary

    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 NutclusterAsyncHybridCache 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.nutcluster.NutclusterCacheManager

    checkSettingsAreCompatible, createAsyncHybridCachedReference, createComputingCache, createDistributedCachedReference, createHybridCache, createHybridCachedReference, createSimpleCache, destroy, getCachedReference, getNutclusterInstance, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.cache.CacheFactory

    getReadThroughCache, getReadThroughCache
  • Constructor Details

    • ConfluenceNutclusterCacheManager

      public ConfluenceNutclusterCacheManager(com.atlassian.nutcluster.core.NutclusterInstance nutcluster, com.atlassian.cache.CacheFactory localCacheFactory, com.atlassian.cache.CacheSettingsDefaultsProvider settingsDefaultsProvider, AsyncInvalidationCacheFactory asyncInvalidationCacheFactory)
  • Method Details

    • 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 NutclusterAsyncHybridCache as we would otherwise get, we instead create a AsyncInvalidationCache.
      Overrides:
      createAsyncHybridCache in class com.atlassian.cache.nutcluster.NutclusterCacheManager
    • 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.nutcluster.NutclusterCacheManager