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_NAMEFields inherited from class com.atlassian.cache.impl.AbstractCacheManager
cacheCreationLocks, caches, cacheSettingsDefaultsProvider -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceNutclusterCacheManager(com.atlassian.nutcluster.core.NutclusterInstance nutcluster, com.atlassian.cache.CacheFactory localCacheFactory, com.atlassian.cache.CacheSettingsDefaultsProvider settingsDefaultsProvider, AsyncInvalidationCacheFactory asyncInvalidationCacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected <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 aNutclusterAsyncHybridCacheas we would otherwise get, we instead create aAsyncInvalidationCache.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, updateCacheSettingsMethods inherited from class com.atlassian.cache.impl.AbstractCacheManager
flushCaches, getCache, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, getCaches, getManagedCache, getManagedCaches, mergeSettings, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 aNutclusterAsyncHybridCacheas we would otherwise get, we instead create aAsyncInvalidationCache.- Overrides:
createAsyncHybridCachein classcom.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:
createDistributedCachein classcom.atlassian.cache.nutcluster.NutclusterCacheManager
-