public class AlwaysInvalidatingCacheDecorator<K,V> extends Object implements com.google.common.cache.LoadingCache<K,V>
Constructor and Description |
---|
AlwaysInvalidatingCacheDecorator(com.google.common.cache.LoadingCache<K,V> cache) |
Modifier and Type | Method and Description |
---|---|
V |
apply(K key) |
ConcurrentMap<K,V> |
asMap() |
void |
cleanUp() |
V |
get(K key) |
V |
get(K k,
Callable<? extends V> callable) |
com.google.common.collect.ImmutableMap<K,V> |
getAll(Iterable<? extends K> keys) |
com.google.common.collect.ImmutableMap<K,V> |
getAllPresent(Iterable<?> keys) |
V |
getIfPresent(Object key) |
V |
getUnchecked(K key) |
void |
invalidate(Object key) |
void |
invalidateAll() |
void |
invalidateAll(Iterable<?> objects) |
void |
put(K k,
V v) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
refresh(K key) |
long |
size() |
com.google.common.cache.CacheStats |
stats() |
static <K,V> com.google.common.cache.LoadingCache<K,V> |
wrap(com.google.common.cache.LoadingCache<K,V> cache) |
public V get(@NotNull K key) throws ExecutionException
get
in interface com.google.common.cache.LoadingCache<K,V>
ExecutionException
public com.google.common.collect.ImmutableMap<K,V> getAll(Iterable<? extends K> keys) throws ExecutionException
getAll
in interface com.google.common.cache.LoadingCache<K,V>
ExecutionException
public void refresh(K key)
public V get(@NotNull K k, @NotNull Callable<? extends V> callable) throws ExecutionException
get
in interface com.google.common.cache.Cache<K,V>
ExecutionException
public com.google.common.collect.ImmutableMap<K,V> getAllPresent(@NotNull Iterable<?> keys)
public void invalidate(@NotNull Object key)
public void invalidateAll()
public void invalidateAll(@NotNull Iterable<?> objects)
public com.google.common.cache.CacheStats stats()
public ConcurrentMap<K,V> asMap()
public static <K,V> com.google.common.cache.LoadingCache<K,V> wrap(com.google.common.cache.LoadingCache<K,V> cache)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.