public final class AsyncInvalidationCache<K,V>
extends com.atlassian.cache.hazelcast.ManagedHybridCacheSupport
implements com.atlassian.cache.Cache<K,V>
Cache
that is backed by a local cache, and which publishes cache
invalidation events when certain mutable operations are performed.Constructor and Description |
---|
AsyncInvalidationCache(String cacheName,
com.atlassian.cache.hazelcast.HazelcastCacheManager cacheManager,
com.atlassian.cache.Cache<K,V> localCache,
com.atlassian.cache.ManagedCache localManagedCache,
CacheInvalidator<K> invalidator) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(com.atlassian.cache.CacheEntryListener<K,V> listener,
boolean includeValues) |
void |
clear() |
boolean |
containsKey(K key) |
V |
get(K key) |
V |
get(K key,
com.atlassian.cache.Supplier<? extends V> valueSupplier) |
Map<K,V> |
getBulk(Set<K> keys,
Function<Set<K>,Map<K,V>> valuesSupplier) |
Collection<K> |
getKeys() |
protected com.atlassian.cache.ManagedCache |
getLocalCache() |
boolean |
isFlushable() |
boolean |
isReplicateAsynchronously() |
void |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
void |
remove(K key) |
boolean |
remove(K key,
V value) |
void |
removeAll() |
void |
removeListener(com.atlassian.cache.CacheEntryListener<K,V> listener) |
boolean |
replace(K key,
V oldValue,
V newValue) |
currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getName, getStatistics, isLocal, isReplicateViaCopy, isStatisticsEnabled, setStatistics, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries
public AsyncInvalidationCache(String cacheName, com.atlassian.cache.hazelcast.HazelcastCacheManager cacheManager, com.atlassian.cache.Cache<K,V> localCache, com.atlassian.cache.ManagedCache localManagedCache, CacheInvalidator<K> invalidator)
protected com.atlassian.cache.ManagedCache getLocalCache()
getLocalCache
in class com.atlassian.cache.hazelcast.ManagedHybridCacheSupport
public void clear()
clear
in interface com.atlassian.cache.ManagedCache
public boolean isFlushable()
isFlushable
in interface com.atlassian.cache.ManagedCache
public boolean isReplicateAsynchronously()
isReplicateAsynchronously
in interface com.atlassian.cache.ManagedCache
public boolean containsKey(K key)
public Collection<K> getKeys()
public void removeAll()
public void addListener(com.atlassian.cache.CacheEntryListener<K,V> listener, boolean includeValues)
Copyright © 2003–2021 Atlassian. All rights reserved.