com.atlassian.confluence.cache
Class SwitchingCacheManager
java.lang.Object
com.atlassian.confluence.cache.CacheManagerSupport
com.atlassian.confluence.cache.SwitchingCacheManager
- All Implemented Interfaces:
- com.atlassian.cache.CacheFactory, com.atlassian.cache.CacheManager
public class SwitchingCacheManager
- extends CacheManagerSupport
- implements com.atlassian.cache.CacheManager
A CacheManager implementation which delegates to one of three other CacheManagers,
one for local caches, one for distributed caches, and one for hybrid caches.
- Since:
- 5.6
|
Method Summary |
void |
flushCaches()
|
<K,V> com.atlassian.cache.Cache<K,V> |
|
getCache(java.lang.String cacheName,
com.atlassian.cache.CacheLoader<K,V> cacheLoader,
com.atlassian.cache.CacheSettings requiredSettings)
|
<V> com.atlassian.cache.CachedReference<V> |
|
getCachedReference(java.lang.String cacheName,
com.atlassian.cache.Supplier<V> valueSupplier,
com.atlassian.cache.CacheSettings requiredSettings)
|
java.util.Collection<com.atlassian.cache.Cache<?,?>> |
getCaches()
Deprecated. |
com.atlassian.cache.ManagedCache |
getManagedCache(java.lang.String cacheName)
|
java.util.Collection<com.atlassian.cache.ManagedCache> |
getManagedCaches()
|
| Methods inherited from class com.atlassian.confluence.cache.CacheManagerSupport |
buildMergedCacheSettings, getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference, isLocalCache, isReplicatedCache, toName |
| 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 |
getCache, getCache, getCache, getCache, getCachedReference, getCachedReference, getCachedReference |
SwitchingCacheManager
public SwitchingCacheManager(CacheSettingsManager cacheSettingsManager,
com.atlassian.cache.CacheManager localCacheManager,
com.atlassian.cache.CacheManager distributedCacheManager,
com.atlassian.cache.CacheManager hybridCacheManager,
CacheDeduplicator cacheDeduplicator)
getCaches
@Deprecated
public java.util.Collection<com.atlassian.cache.Cache<?,?>> getCaches()
- Deprecated.
- Specified by:
getCaches in interface com.atlassian.cache.CacheManager
getManagedCaches
public java.util.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(@NotNull
java.lang.String cacheName)
- Specified by:
getManagedCache in interface com.atlassian.cache.CacheManager
getCachedReference
public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@NotNull
java.lang.String cacheName,
@NotNull
com.atlassian.cache.Supplier<V> valueSupplier,
@NotNull
com.atlassian.cache.CacheSettings requiredSettings)
- Specified by:
getCachedReference in interface com.atlassian.cache.CacheFactory- Specified by:
getCachedReference in class CacheManagerSupport
getCache
public <K,V> com.atlassian.cache.Cache<K,V> getCache(@NotNull
java.lang.String cacheName,
com.atlassian.cache.CacheLoader<K,V> cacheLoader,
@NotNull
com.atlassian.cache.CacheSettings requiredSettings)
- Specified by:
getCache in interface com.atlassian.cache.CacheFactory- Specified by:
getCache in class CacheManagerSupport
Copyright © 2003-2014 Atlassian. All Rights Reserved.