public class KeyTransformingLoadingCache<A,B,V>
extends <any>
LoadingCache
.Modifier and Type | Class and Description |
---|---|
static class |
KeyTransformingLoadingCache.KeyTransformingSameTypeLoadingCache<A,V> |
Constructor and Description |
---|
KeyTransformingLoadingCache(<any> delegate,
<any> keyTransformer) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ConcurrentMap<A,V> |
asMap()
Undefined because input values are not tracked.
|
void |
cleanUp() |
static <A,B,V> KeyTransformingLoadingCache<A,B,V> |
from(<any> delegate,
<any> keyTransformer) |
V |
get(A key) |
V |
get(A key,
java.util.concurrent.Callable<? extends V> valueLoader) |
<any> |
getAllPresent(java.lang.Iterable<?> keys)
Undefined because we can't prohibit a surjective
keyTransformer() . |
V |
getIfPresent(java.lang.Object key) |
void |
invalidate(java.lang.Object key) |
void |
invalidateAll() |
void |
put(A key,
V value) |
void |
refresh(A key) |
long |
size() |
CacheStats |
stats() |
public KeyTransformingLoadingCache(<any> delegate, <any> keyTransformer)
public static <A,B,V> KeyTransformingLoadingCache<A,B,V> from(<any> delegate, <any> keyTransformer)
public V getIfPresent(java.lang.Object key)
public V get(A key, java.util.concurrent.Callable<? extends V> valueLoader) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionException
public <any> getAllPresent(java.lang.Iterable<?> keys)
keyTransformer()
.java.lang.UnsupportedOperationException
public void invalidate(java.lang.Object key)
public void invalidateAll()
public long size()
public CacheStats stats()
public V get(A key) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionException
public void refresh(A key)
public java.util.concurrent.ConcurrentMap<A,V> asMap()
java.lang.UnsupportedOperationException
public void cleanUp()