@Internal public class ConfluenceHazelcastCacheManager extends Object implements com.atlassian.cache.CacheManager
It will wrap all caches in Monitoring Caches, and all Loaders in ConfluenceMonitoringLoaders.
| Constructor and Description |
|---|
ConfluenceHazelcastCacheManager(HazelcastClusterManager hazelcastClusterManager,
com.atlassian.cache.CacheManager localCacheManager,
ConfluenceMonitoring confluenceMonitoring,
CacheSettingsManager cacheSettingsManager,
HazelcastHelper hazelcastHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCaches() |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull Class<?> owningClass,
@NonNull String name) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name,
@Nullable com.atlassian.cache.CacheLoader<K,V> loader) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name,
@Nullable com.atlassian.cache.CacheLoader<K,V> loader,
@NonNull com.atlassian.cache.CacheSettings cacheSettings) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name,
@NonNull Class<K> keyType,
@NonNull Class<V> valueType) |
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull Class<?> owningClass,
@NonNull String name,
@NonNull com.atlassian.cache.Supplier<V> supplier) |
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull Class<?> owningClass,
@NonNull String name,
@NonNull com.atlassian.cache.Supplier<V> supplier,
@NonNull com.atlassian.cache.CacheSettings cacheSettings) |
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull String name,
@NonNull com.atlassian.cache.Supplier<V> supplier) |
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull String name,
@NonNull com.atlassian.cache.Supplier<V> supplier,
@NonNull com.atlassian.cache.CacheSettings cacheSettings) |
@NonNull Collection<com.atlassian.cache.Cache<?,?>> |
getCaches()
Deprecated.
|
@Nullable com.atlassian.cache.ManagedCache |
getManagedCache(@NonNull String name) |
@NonNull Collection<com.atlassian.cache.ManagedCache> |
getManagedCaches() |
void |
shutdown() |
public ConfluenceHazelcastCacheManager(HazelcastClusterManager hazelcastClusterManager, com.atlassian.cache.CacheManager localCacheManager, ConfluenceMonitoring confluenceMonitoring, CacheSettingsManager cacheSettingsManager, HazelcastHelper hazelcastHelper)
@Deprecated public @NonNull Collection<com.atlassian.cache.Cache<?,?>> getCaches()
getCaches in interface com.atlassian.cache.CacheManagerpublic @NonNull Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
getManagedCaches in interface com.atlassian.cache.CacheManagerpublic void flushCaches()
flushCaches in interface com.atlassian.cache.CacheManagerpublic @Nullable com.atlassian.cache.ManagedCache getManagedCache(@NonNull String name)
getManagedCache in interface com.atlassian.cache.CacheManagerpublic void shutdown()
shutdown in interface com.atlassian.cache.CacheManagerpublic <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull String name, @NonNull com.atlassian.cache.Supplier<V> supplier)
getCachedReference in interface com.atlassian.cache.CacheFactorypublic <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull String name, @NonNull com.atlassian.cache.Supplier<V> supplier, @NonNull com.atlassian.cache.CacheSettings cacheSettings)
getCachedReference in interface com.atlassian.cache.CacheFactorypublic <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull Class<?> owningClass, @NonNull String name, @NonNull com.atlassian.cache.Supplier<V> supplier)
getCachedReference in interface com.atlassian.cache.CacheFactorypublic <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull Class<?> owningClass, @NonNull String name, @NonNull com.atlassian.cache.Supplier<V> supplier, @NonNull com.atlassian.cache.CacheSettings cacheSettings)
getCachedReference in interface com.atlassian.cache.CacheFactorypublic <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull String name)
getCache in interface com.atlassian.cache.CacheFactorypublic <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull Class<?> owningClass, @NonNull String name)
getCache in interface com.atlassian.cache.CacheFactorypublic <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull String name, @Nullable com.atlassian.cache.CacheLoader<K,V> loader)
getCache in interface com.atlassian.cache.CacheFactorypublic <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull String name, @Nullable com.atlassian.cache.CacheLoader<K,V> loader, @NonNull com.atlassian.cache.CacheSettings cacheSettings)
getCache in interface com.atlassian.cache.CacheFactoryCopyright © 2003–2019 Atlassian. All rights reserved.