Class ConfluenceHazelcastCacheManager

java.lang.Object
com.atlassian.cache.impl.AbstractCacheManager
com.atlassian.cache.hazelcast.HazelcastCacheManager
com.atlassian.confluence.impl.cache.hazelcast.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

    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

    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

    • ConfluenceHazelcastCacheManager

      public ConfluenceHazelcastCacheManager(com.hazelcast.core.HazelcastInstance hazelcast, 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 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