@ParametersAreNonnullByDefault public final class UnboundedRacyLoadingCache<K,V> extends Object implements com.google.common.cache.LoadingCache<K,V>
Constructor and Description |
---|
UnboundedRacyLoadingCache(int initialSize,
com.google.common.cache.CacheLoader<K,V> loader) |
Modifier and Type | Method and Description |
---|---|
V |
apply(K key) |
ConcurrentMap<K,V> |
asMap() |
void |
cleanUp() |
V |
get(K key) |
V |
get(K key,
Callable<? extends V> valueLoader) |
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<?> keys) |
void |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
refresh(K key) |
long |
size() |
com.google.common.cache.CacheStats |
stats() |
public V get(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 ConcurrentMap<K,V> asMap()
public V get(K key, Callable<? extends V> valueLoader) throws ExecutionException
get
in interface com.google.common.cache.Cache<K,V>
ExecutionException
public void invalidate(Object key)
public void invalidateAll(Iterable<?> keys)
public void invalidateAll()
public com.google.common.cache.CacheStats stats()
Copyright © 2014. All rights reserved.