@ParametersAreNonnullByDefault public class SerializationRecordingCacheManager extends Object implements com.atlassian.cache.CacheManager
Constructor and Description |
---|
SerializationRecordingCacheManager(com.atlassian.cache.CacheManager delegate,
Path recordFile) |
SerializationRecordingCacheManager(com.atlassian.cache.CacheManager delegate,
SerializationRecorder recorder) |
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.cache.Cache<K,V> |
getCache(String name) |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(String name,
com.atlassian.cache.CacheLoader<K,V> cacheLoader) |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(String name,
com.atlassian.cache.CacheLoader<K,V> cacheLoader,
com.atlassian.cache.CacheSettings cacheSettings) |
<K,V> com.atlassian.cache.Cache<K,V> |
getCache(String name,
Class<K> keyClass,
Class<V> valueClass)
Deprecated.
|
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(Class<?> owningClass,
String name,
com.atlassian.cache.Supplier<V> supplier) |
<V> com.atlassian.cache.CachedReference<V> |
getCachedReference(Class<?> owningClass,
String name,
com.atlassian.cache.Supplier<V> supplier,
com.atlassian.cache.CacheSettings cacheSettings) |
<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 cacheSettings) |
Collection<com.atlassian.cache.Cache<?,?>> |
getCaches()
Deprecated.
|
com.atlassian.cache.ManagedCache |
getManagedCache(String name) |
Collection<com.atlassian.cache.ManagedCache> |
getManagedCaches() |
void |
shutdown() |
public SerializationRecordingCacheManager(com.atlassian.cache.CacheManager delegate, Path recordFile) throws IOException
IOException
public SerializationRecordingCacheManager(com.atlassian.cache.CacheManager delegate, SerializationRecorder recorder)
@Deprecated @Nonnull public Collection<com.atlassian.cache.Cache<?,?>> getCaches()
getCaches
in interface com.atlassian.cache.CacheManager
@Nonnull public Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
getManagedCaches
in interface com.atlassian.cache.CacheManager
public void flushCaches()
flushCaches
in interface com.atlassian.cache.CacheManager
@Nullable 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(String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
getCachedReference
in interface com.atlassian.cache.CacheFactory
@Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier)
getCachedReference
in interface com.atlassian.cache.CacheFactory
@Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(Class<?> owningClass, String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings)
getCachedReference
in interface com.atlassian.cache.CacheFactory
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name)
getCache
in interface com.atlassian.cache.CacheFactory
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(Class<?> owningClass, String name)
getCache
in interface com.atlassian.cache.CacheFactory
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, @Nullable com.atlassian.cache.CacheLoader<K,V> cacheLoader)
getCache
in interface com.atlassian.cache.CacheFactory
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, @Nullable com.atlassian.cache.CacheLoader<K,V> cacheLoader, com.atlassian.cache.CacheSettings cacheSettings)
getCache
in interface com.atlassian.cache.CacheFactory
@Deprecated @Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(String name, Class<K> keyClass, Class<V> valueClass)
getCache
in interface com.atlassian.cache.CacheFactory
Copyright © 2002-2018 Atlassian. All Rights Reserved.