Class JvmCacheAdapter<K,V>
- java.lang.Object
-
- com.atlassian.confluence.impl.vcache.JvmCacheAdapter<K,V>
-
- All Implemented Interfaces:
com.atlassian.cache.Cache<K,V>
@Deprecated public final class JvmCacheAdapter<K,V> extends Object implements com.atlassian.cache.Cache<K,V>
Deprecated.since 7.20An implementation ofCachebacked by aJvmCache. This can be useful for backwards compatibility code.- Since:
- 7.20
-
-
Constructor Summary
Constructors Constructor Description JvmCacheAdapter(com.atlassian.vcache.JvmCache<K,V> delegate)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(com.atlassian.cache.CacheEntryListener<K,V> listener, boolean includeValues)Deprecated.booleancontainsKey(K key)Deprecated.Vget(K key)Deprecated.Vget(K key, com.atlassian.cache.Supplier<? extends V> valueSupplier)Deprecated.Collection<K>getKeys()Deprecated.StringgetName()Deprecated.voidput(K key, V value)Deprecated.VputIfAbsent(K key, V value)Deprecated.voidremove(K key)Deprecated.booleanremove(K key, V value)Deprecated.voidremoveAll()Deprecated.voidremoveListener(com.atlassian.cache.CacheEntryListener<K,V> listener)Deprecated.booleanreplace(K key, V oldValue, V newValue)Deprecated.
-
-
-
Method Detail
-
getName
@Nonnull public String getName()
Deprecated.
-
containsKey
public boolean containsKey(@Nonnull K key)Deprecated.
-
getKeys
@Nonnull public Collection<K> getKeys()
Deprecated.
-
get
@Nonnull public V get(@Nonnull K key, @Nonnull com.atlassian.cache.Supplier<? extends V> valueSupplier)
Deprecated.
-
remove
public void remove(@Nonnull K key)Deprecated.
-
removeAll
public void removeAll()
Deprecated.
-
replace
public boolean replace(@Nonnull K key, @Nonnull V oldValue, @Nonnull V newValue)Deprecated.
-
addListener
public void addListener(@Nonnull com.atlassian.cache.CacheEntryListener<K,V> listener, boolean includeValues)Deprecated.
-
-