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 ofCache
backed 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 void
addListener(com.atlassian.cache.CacheEntryListener<K,V> listener, boolean includeValues)
Deprecated.boolean
containsKey(K key)
Deprecated.V
get(K key)
Deprecated.V
get(K key, com.atlassian.cache.Supplier<? extends V> valueSupplier)
Deprecated.Collection<K>
getKeys()
Deprecated.String
getName()
Deprecated.void
put(K key, V value)
Deprecated.V
putIfAbsent(K key, V value)
Deprecated.void
remove(K key)
Deprecated.boolean
remove(K key, V value)
Deprecated.void
removeAll()
Deprecated.void
removeListener(com.atlassian.cache.CacheEntryListener<K,V> listener)
Deprecated.boolean
replace(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.
-
-