public class EhCacheManager extends Object implements com.atlassian.cache.CacheManager
CacheManager
which delegates to an atlassian-cache
com.atlassian.cache.ehcache.EhCacheManager
, decorating it with Confluence-specific functionality.Constructor and Description |
---|
EhCacheManager(Collection<String> nonFlushableCacheNames,
ConfluenceMonitoring confluenceMonitoring)
Deprecated.
since 5.9.1. Use
EhCacheManager(ConfluenceMonitoring, CacheSettingsDefaultsProvider) instead. |
EhCacheManager(ConfluenceMonitoring confluenceMonitoring,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
Deprecated.
|
EhCacheManager(ConfluenceMonitoring confluenceMonitoring,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider,
CacheOperationsWhitelistService cacheOperationsWhitelistService) |
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.confluence.cache.ehcache.ConfluenceEhCache<K,V> |
getCache(@NonNull String name) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name,
com.atlassian.cache.CacheLoader<K,V> loader) |
<K,V> @NonNull com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> |
getCache(@NonNull String name,
com.atlassian.cache.CacheLoader<K,V> loader,
@NonNull com.atlassian.cache.CacheSettings settings) |
<K,V> @NonNull com.atlassian.cache.Cache<K,V> |
getCache(@NonNull String name,
@NonNull Class<K> keyType,
@NonNull Class<V> valueType)
Deprecated.
since 5.7, since it's deprecated in atlassian-cache library 2.5.0
|
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull Class<?> owningClass,
@NonNull String fieldName,
@NonNull com.atlassian.cache.Supplier<V> supplier) |
<V> @NonNull com.atlassian.cache.CachedReference<V> |
getCachedReference(@NonNull Class<?> owningClass,
@NonNull String fieldName,
@NonNull com.atlassian.cache.Supplier<V> supplier,
@NonNull com.atlassian.cache.CacheSettings settings) |
<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 settings) |
@NonNull Collection<com.atlassian.cache.Cache<?,?>> |
getCaches()
Deprecated.
since 7.2. Use
getManagedCaches() instead. |
net.sf.ehcache.CacheManager |
getEhCacheManager() |
com.atlassian.cache.ManagedCache |
getManagedCache(@NonNull String name) |
@NonNull Collection<com.atlassian.cache.ManagedCache> |
getManagedCaches() |
void |
shutdown() |
void |
shutdownCacheManager() |
@Deprecated public EhCacheManager(Collection<String> nonFlushableCacheNames, ConfluenceMonitoring confluenceMonitoring) throws IOException
EhCacheManager(ConfluenceMonitoring, CacheSettingsDefaultsProvider)
instead.IOException
@Deprecated public EhCacheManager(ConfluenceMonitoring confluenceMonitoring, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
EhCacheManager(ConfluenceMonitoring, CacheSettingsDefaultsProvider, CacheOperationsWhitelistService)
public EhCacheManager(ConfluenceMonitoring confluenceMonitoring, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider, CacheOperationsWhitelistService cacheOperationsWhitelistService)
@PreDestroy public void shutdownCacheManager()
public void flushCaches()
flushCaches
in interface com.atlassian.cache.CacheManager
@Deprecated public @NonNull Collection<com.atlassian.cache.Cache<?,?>> getCaches()
getManagedCaches()
instead.getCaches
in interface com.atlassian.cache.CacheManager
public <K,V> @NonNull com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> getCache(@NonNull String name)
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
in interface com.atlassian.cache.CacheFactory
public @NonNull Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
getManagedCaches
in interface com.atlassian.cache.CacheManager
public 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 settings)
getCachedReference
in interface com.atlassian.cache.CacheFactory
public <V> @NonNull com.atlassian.cache.CachedReference<V> getCachedReference(@NonNull Class<?> owningClass, @NonNull String fieldName, @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 fieldName, @NonNull com.atlassian.cache.Supplier<V> supplier, @NonNull com.atlassian.cache.CacheSettings settings)
getCachedReference
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, com.atlassian.cache.CacheLoader<K,V> loader)
getCache
in interface com.atlassian.cache.CacheFactory
public <K,V> @NonNull com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> getCache(@NonNull String name, com.atlassian.cache.CacheLoader<K,V> loader, @NonNull com.atlassian.cache.CacheSettings settings)
getCache
in interface com.atlassian.cache.CacheFactory
public net.sf.ehcache.CacheManager getEhCacheManager()
Copyright © 2003–2020 Atlassian. All rights reserved.