Class ConfluenceHazelcastCacheManager
- java.lang.Object
-
- com.atlassian.confluence.cache.hazelcast.ConfluenceHazelcastCacheManager
-
- All Implemented Interfaces:
com.atlassian.cache.CacheFactory
,com.atlassian.cache.CacheManager
@Internal public class ConfluenceHazelcastCacheManager extends Object implements com.atlassian.cache.CacheManager
Confluence wrapper around the atlassian-cache implementation of HazelcastCacheManagerIt will wrap all caches in Monitoring Caches, and all Loaders in ConfluenceMonitoringLoaders.
- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description ConfluenceHazelcastCacheManager(ConfluenceMonitoring confluenceMonitoring, com.atlassian.confluence.cache.hazelcast.HazelcastCacheManagerFactory delegateFactory, CacheOperationsWhitelistService operationsWhitelistService, HibernateManagedRegionCacheLookup hibernateManagedRegionCacheLookup)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
flushCaches()
<K,V>
com.atlassian.cache.Cache<K,V>getCache(Class<?> owningClass, String name)
<K,V>
com.atlassian.cache.Cache<K,V>getCache(String name)
<K,V>
com.atlassian.cache.Cache<K,V>getCache(String name, com.atlassian.cache.CacheLoader<K,V> loader)
<K,V>
com.atlassian.cache.Cache<K,V>getCache(String name, com.atlassian.cache.CacheLoader<K,V> loader, com.atlassian.cache.CacheSettings cacheSettings)
<K,V>
com.atlassian.cache.Cache<K,V>getCache(String name, Class<K> keyType, Class<V> valueType)
Deprecated.since 7.2.<V> com.atlassian.cache.CachedReference<V>
getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier)
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier)
<V> com.atlassian.cache.CachedReference<V>
getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
Collection<com.atlassian.cache.Cache<?,?>>
getCaches()
Deprecated.since 7.2.com.atlassian.cache.ManagedCache
getManagedCache(String name)
Collection<com.atlassian.cache.ManagedCache>
getManagedCaches()
void
shutdown()
-
-
-
Constructor Detail
-
ConfluenceHazelcastCacheManager
public ConfluenceHazelcastCacheManager(ConfluenceMonitoring confluenceMonitoring, com.atlassian.confluence.cache.hazelcast.HazelcastCacheManagerFactory delegateFactory, CacheOperationsWhitelistService operationsWhitelistService, HibernateManagedRegionCacheLookup hibernateManagedRegionCacheLookup)
-
-
Method Detail
-
getCaches
@Deprecated public Collection<com.atlassian.cache.Cache<?,?>> getCaches()
Deprecated.since 7.2. UsegetManagedCaches()
instead.- Specified by:
getCaches
in interfacecom.atlassian.cache.CacheManager
-
getManagedCaches
public Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
- Specified by:
getManagedCaches
in interfacecom.atlassian.cache.CacheManager
-
flushCaches
public void flushCaches()
- Specified by:
flushCaches
in interfacecom.atlassian.cache.CacheManager
-
getManagedCache
public com.atlassian.cache.ManagedCache getManagedCache(String name)
- Specified by:
getManagedCache
in interfacecom.atlassian.cache.CacheManager
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfacecom.atlassian.cache.CacheManager
-
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier)
- Specified by:
getCachedReference
in interfacecom.atlassian.cache.CacheFactory
-
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
- Specified by:
getCachedReference
in interfacecom.atlassian.cache.CacheFactory
-
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier)
- Specified by:
getCachedReference
in interfacecom.atlassian.cache.CacheFactory
-
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
- Specified by:
getCachedReference
in interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name)
- Specified by:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(Class<?> owningClass, String name)
- Specified by:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, com.atlassian.cache.CacheLoader<K,V> loader)
- Specified by:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, com.atlassian.cache.CacheLoader<K,V> loader, com.atlassian.cache.CacheSettings cacheSettings)
- Specified by:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
getCache
@Deprecated public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, Class<K> keyType, Class<V> valueType)
Deprecated.since 7.2. UsegetCache(String)
instead.- Specified by:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
-