@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)
Deprecated.
since 7.2. Use
getCache(String) instead. |
<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.
since 7.2. Use
getManagedCaches() instead. |
@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()
getManagedCaches()
instead.getCaches
in interface com.atlassian.cache.CacheManager
public @NonNull Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
getManagedCaches
in interface com.atlassian.cache.CacheManager
public void flushCaches()
flushCaches
in interface com.atlassian.cache.CacheManager
public @Nullable com.atlassian.cache.ManagedCache getManagedCache(@NonNull String name)
getManagedCache
in interface com.atlassian.cache.CacheManager
public void shutdown()
shutdown
in interface com.atlassian.cache.CacheManager
public <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull String name, @NonNull com.atlassian.cache.Supplier<V> supplier)
getCachedReference
in interface com.atlassian.cache.CacheFactory
public <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.CacheFactory
public <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.CacheFactory
public <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.CacheFactory
public <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull String name)
getCache
in interface com.atlassian.cache.CacheFactory
public <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull Class<?> owningClass, @NonNull String name)
getCache
in interface com.atlassian.cache.CacheFactory
public <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.CacheFactory
public <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.CacheFactory
@Deprecated public <K,V> @NonNull com.atlassian.cache.Cache<K,V> getCache(@NonNull String name, @NonNull Class<K> keyType, @NonNull Class<V> valueType)
getCache(String)
instead.getCache
in interface com.atlassian.cache.CacheFactory
Copyright © 2003–2020 Atlassian. All rights reserved.