protected static class DefaultComputingCacheFactory.LoadingCacheAdapter<K,V> extends Object implements ComputingCache<K,V>
ComputingCache.Function<K,V>, ComputingCache.KeyPredicate<K>, ComputingCache.Listener<K>| Modifier | Constructor and Description |
|---|---|
protected |
LoadingCacheAdapter(com.google.common.cache.LoadingCache<K,V> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cache.
|
V |
get(K key) |
Map<K,V> |
getAllPresent() |
V |
getIfPresent(K key) |
void |
invalidate(ComputingCache.KeyPredicate<K> keyPredicate)
Invalidate all entries whose keys satisfy a predicate.
|
long |
size() |
public V get(K key)
get in interface ComputingCache<K,V>public V getIfPresent(K key)
getIfPresent in interface ComputingCache<K,V>null if no such value existspublic void clear()
ComputingCacheclear in interface ComputingCache<K,V>public long size()
size in interface ComputingCache<K,V>public void invalidate(ComputingCache.KeyPredicate<K> keyPredicate)
ComputingCacheinvalidate in interface ComputingCache<K,V>public Map<K,V> getAllPresent()
getAllPresent in interface ComputingCache<K,V>Copyright © 2015. All rights reserved.