Class 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 HazelcastCacheManager

    It will wrap all caches in Monitoring Caches, and all Loaders in ConfluenceMonitoringLoaders.

    Since:
    5.7
    • Method Detail

      • getCaches

        @Deprecated
        public Collection<com.atlassian.cache.Cache<?,​?>> getCaches()
        Deprecated.
        since 7.2. Use getManagedCaches() instead.
        Specified by:
        getCaches in interface com.atlassian.cache.CacheManager
      • getManagedCaches

        public Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
        Specified by:
        getManagedCaches in interface com.atlassian.cache.CacheManager
      • flushCaches

        public void flushCaches()
        Specified by:
        flushCaches in interface com.atlassian.cache.CacheManager
      • getManagedCache

        public com.atlassian.cache.ManagedCache getManagedCache​(String name)
        Specified by:
        getManagedCache in interface com.atlassian.cache.CacheManager
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface com.atlassian.cache.CacheManager
      • getCachedReference

        public <V> com.atlassian.cache.CachedReference<V> getCachedReference​(String name,
                                                                             com.atlassian.cache.Supplier<V> supplier)
        Specified by:
        getCachedReference in interface com.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 interface com.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 interface com.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 interface com.atlassian.cache.CacheFactory
      • getCache

        public <K,​V> com.atlassian.cache.Cache<K,​V> getCache​(String name)
        Specified by:
        getCache in interface com.atlassian.cache.CacheFactory
      • getCache

        public <K,​V> com.atlassian.cache.Cache<K,​V> getCache​(Class<?> owningClass,
                                                                         String name)
        Specified by:
        getCache in interface com.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 interface com.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 interface com.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. Use getCache(String) instead.
        Specified by:
        getCache in interface com.atlassian.cache.CacheFactory