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.
|
EhCacheManager(ConfluenceMonitoring confluenceMonitoring,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider) |
Modifier and Type | Method and Description |
---|---|
void |
flushCaches() |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(Class<?> owningClass,
String name) |
<K,V> com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> |
getCache(String name) |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(String name,
com.atlassian.cache.CacheLoader<K,V> loader) |
<K,V> com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> |
getCache(String name,
com.atlassian.cache.CacheLoader<K,V> loader,
com.atlassian.cache.CacheSettings settings) |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(String name,
Class<K> keyType,
Class<V> valueType)
Deprecated.
|
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(Class<?> owningClass,
String fieldName,
com.atlassian.cache.Supplier<V> supplier) |
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(Class<?> owningClass,
String fieldName,
com.atlassian.cache.Supplier<V> supplier,
com.atlassian.cache.CacheSettings settings) |
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(String name,
com.atlassian.cache.Supplier<V> supplier) |
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(String name,
com.atlassian.cache.Supplier<V> supplier,
com.atlassian.cache.CacheSettings settings) |
Collection<com.atlassian.cache.Cache<?,?>> |
getCaches() |
com.atlassian.cache.ManagedCache |
getManagedCache(String name) |
Collection<com.atlassian.cache.ManagedCache> |
getManagedCaches() |
void |
shutdown() |
void |
shutdownCacheManager() |
@Deprecated public EhCacheManager(Collection<String> nonFlushableCacheNames, ConfluenceMonitoring confluenceMonitoring) throws IOException
IOException
public EhCacheManager(ConfluenceMonitoring confluenceMonitoring, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
@PreDestroy public void shutdownCacheManager()
public void flushCaches()
flushCaches
in interface com.atlassian.cache.CacheManager
@Nonnull public Collection<com.atlassian.cache.Cache<?,?>> getCaches()
getCaches
in interface com.atlassian.cache.CacheManager
@Nonnull public <K,V> com.atlassian.confluence.cache.ehcache.ConfluenceEhCache<K,V> getCache(@Nonnull String name)
getCache
in interface com.atlassian.cache.CacheFactory
@Nonnull @Deprecated public <K,V> 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
@Nonnull public 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
@Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@Nonnull String name, @Nonnull com.atlassian.cache.Supplier<V> supplier)
getCachedReference
in interface com.atlassian.cache.CacheFactory
@Nonnull public <V> 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
@Nonnull public <V> 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
@Nonnull public <V> 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
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull Class<?> owningClass, @Nonnull String name)
getCache
in interface com.atlassian.cache.CacheFactory
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull String name, com.atlassian.cache.CacheLoader<K,V> loader)
getCache
in interface com.atlassian.cache.CacheFactory
Copyright © 2003–2017 Atlassian. All rights reserved.