@ParametersAreNonnullByDefault public final class UnboundedLoadingCache2<K,V> extends Object implements com.google.common.cache.LoadingCache<K,V>
Constructor and Description |
---|
UnboundedLoadingCache2(int initialSize,
com.google.common.cache.CacheLoader<K,V> loader) |
UnboundedLoadingCache2(int initialSize,
int concurrency,
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() |
String |
toString() |
public UnboundedLoadingCache2(int initialSize, com.google.common.cache.CacheLoader<K,V> loader)
public void refresh(K key)
public ConcurrentMap<K,V> asMap()
public void invalidate(Object key)
public void invalidateAll(Iterable<?> keys)
public void invalidateAll()
public com.google.common.cache.CacheStats stats()
Copyright © 2018 SPF4J. All rights reserved.