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 ofHazelcastCacheManager
which overrides the creation of certain cache types.- Since:
- 8.4
-
-
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 aHazelcastAsyncHybridCache
as 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.hazelcast.HazelcastCacheManager
checkSettingsAreCompatible, createAsyncHybridCachedReference, createComputingCache, createDistributedCachedReference, createHybridCache, createHybridCachedReference, createSimpleCache, destroy, getCachedReference, getHazelcastInstance, init, updateCacheSettings
-
-
-
-
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 aHazelcastAsyncHybridCache
as we would otherwise get, we instead create aAsyncInvalidationCache
.- Overrides:
createAsyncHybridCache
in classcom.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 classcom.atlassian.cache.hazelcast.HazelcastCacheManager
-
-