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 voidflushCaches()<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.ManagedCachegetManagedCache(String name)Collection<com.atlassian.cache.ManagedCache>getManagedCaches()voidshutdown()
-
-
-
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:
getCachesin interfacecom.atlassian.cache.CacheManager
-
getManagedCaches
public Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
- Specified by:
getManagedCachesin interfacecom.atlassian.cache.CacheManager
-
flushCaches
public void flushCaches()
- Specified by:
flushCachesin interfacecom.atlassian.cache.CacheManager
-
getManagedCache
public com.atlassian.cache.ManagedCache getManagedCache(String name)
- Specified by:
getManagedCachein interfacecom.atlassian.cache.CacheManager
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacecom.atlassian.cache.CacheManager
-
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier)
- Specified by:
getCachedReferencein 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:
getCachedReferencein 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:
getCachedReferencein 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:
getCachedReferencein interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name)
- Specified by:
getCachein interfacecom.atlassian.cache.CacheFactory
-
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(Class<?> owningClass, String name)
- Specified by:
getCachein 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:
getCachein 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:
getCachein 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:
getCachein interfacecom.atlassian.cache.CacheFactory
-
-